Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by kenrbnsn

  1. kenrbnsn

    I am having some trouble with some

    Why do you have backslashes infront of the single quotes in $sql2 = "UPDATE `counters` SET `Count`=\'$CurrentCount\' WHERE `Site`=\'1\'"; You should always check for mysql errors. They will usually tell you what is wrong: $sql = "SELECT `Count` FROM `counters` WHERE `Site`='1'"...
  2. kenrbnsn

    Is VMS still being used ?

    Yes, VMS is still being used and developed. The VMS web site at HP can be found at http://www.hp.com/go/vms The OS has been ported to the Itanium-64 chipset. There is also an active Hobbyist area for VMS. Information on that can be found at http://www.openvmshobbyist.com/ Ken OpenVMS System...
  3. kenrbnsn

    Data Migration from VMS to..

    Pathworks is still out there and is still Propietory, but samba does run on VMS and can do the same thing. Are you machines on a network? If so try FTP or even Kermit. Ken
  4. kenrbnsn

    PDF-PHP from ROS and variable values not passing

    Check the value if the register_globals in your PHP.INI file It sounds like you programed your code assuming that it is enabled when it should be disabled. See http://www.php.net/register_globals for more information. Ken
  5. kenrbnsn

    Get all $_POST variables

    How are the checkboxes named? If you show us that code, we might be able to come up with a more effecient way of naming them so that your coding to check them is simple. Ken
  6. kenrbnsn

    Array of Array's and end()

    What do you want your output to look like? Here's one possible option: <? $a = array("col1" => array("title"=>"c1title", "hidden"=>'false'), "col2" => array("title"=>"c2title", "hidden"=>'true')); $set = array(); foreach ($a as $key=>$ary) foreach ($ary as $subkey => $val) $set[] =...
  7. kenrbnsn

    Query problem

    Add an "or die" clause on to the mysql_select_db() function: mysql_select_db($database_connect,$connect) or die('Could not select database<br>'.mysql_error()); and see what you get. Ken
  8. kenrbnsn

    Create an array with multiple entries per value

    You could also have an associative array like: $foo = array ('ACC01' => 'Accord Inc.', 'ACC02' => 'Acctune Inc', 'ADV02' => 'Advanced Inc') ); Ken
  9. kenrbnsn

    serialze problem

    This works fine, I didn't store it in the database. $test1 = array("me","he","dragon's"); $test2 = serialize($test1); echo $test2; $test3 = addslashes($test2); echo '<br>'.$test3; $test4 = unserialize(stripslashes($test3)); echo '<pre>';print_r($test4);echo '</pre>'; Are you doing something...
  10. kenrbnsn

    MAIL FUNCTION NOT WORKING

    Looks fine, check with your hosting company.
  11. kenrbnsn

    serialze problem

    You can use stripslashes() to remove the slashes added with addslashes(). The better way is to use mysql_real_escape_string() when you put it in the database. You don't have to do anythine when you remove it, since MySQL will automagically do the right thing. Ken
  12. kenrbnsn

    Combining array question

    How's this? It uses serialize(), unserialize() and array_unique(). The $orig array is the one you started with, $new_orig is the array with unique entries. The echo statement are for debugging, so you can see what's going on. echo '<pre>';print_r($orig);echo '</pre>'; foreach ($orig as $k=>$na)...
  13. kenrbnsn

    Why would this not work?

    It's probably a register_globals Enabled vs. Disabled. How do you reference variables coming from the form. If you don't use $_POST, $_GET, or $_REQUEST, change to that method and your scripts will work no matter where you run them. See http://www.php.net/register_globals for more information.
  14. kenrbnsn

    VMS 5.5 change IP

    See my reply to your other post.
  15. kenrbnsn

    Changing IP Adress in VMS/VAX

    Sounds like you don't have UCX on the machine, you might have TCPware or Multinet. Do a $ sho logical/sys multinet* $ sho logical/sys tcpware* and see if you get anything back. Also, my may want to post on the newsgroup comp.os.vms If you don't know what a newsgroup is, go to...

Part and Inventory Search

Back
Top