PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Is that making the loop continue untill $x isn't equal to mysql_fetch_array($myQueryVal) because there are no other results for the variable to be able to be equal to the array?
Is that making the loop continue untill $x isn't equal to mysql_fetch_array($myQueryVal) because there are no other results for the variable to be able to be equal to the array?
No... = is an assignment operator, not an equality operator... all the = sign does is assign the result of mysql_fetch_array() to the variable $x. mysql_fetch_array increments an internal pointer, and when there is nothing else to iterate through it returns false, thereby breaking out of the loop
Where does the increment of the array come into place? Does that work behind the scenes within mysql_fetch_array? Somewhere it must be saying to server that the row it's trying to pass into the variable has already been placed so move to the next line?
(PHP 3, PHP 4, PHP 5)
mysql_fetch_array -- Fetch a result row as an associative array, a numeric array, or both
Description
array mysql_fetch_array ( resource result [, int result_type] )
Returns an array that corresponds to the fetched row and moves the internal data pointer ahead.
Boy, that manual sure looks like an informative resource!! I'd even bet that they have a search function??!!?!... OMGWTFBBQ!&*!!111one THEY DO!!!!!!!11 how long has that been there??!