Greetings...
Suppose an array looks like such:
[0] => "John" [Fname] => "John" [1] => "Smith" [Lname] => "Smith"
Is there anyway to prune the array so I may use the next() function to traverse through them?
Originally posted by Wynder Greetings... Suppose an array looks like such: [0] => "John" [Fname] => "John" [1] => "Smith" [Fname] => "Smith" Is there anyway to prune the array so I may use the next() function to traverse through them?
mysql_fetch_assoc() or mysql_fetch_array($result,MYSQL_ASSOC)
I would suggest reading up at www.php.net/mysql_fetch_array
regardless, next() will work either way.. just not get the desired output you want I would suspect 😉
Cheers -- just what I was looking for. 🙂