How do I advance the pointer to the next row within a while loop using mysql_fetch_array?
while ($row = mysql_fetch_array($result)) {
$zip11 = $row['postnet ip'];
include "postnet2.php";
//SOME MORE PROCESSING
//I NEED TO ADVANCE THE POINTER HERE TO THE NEXT ROW
//SOME MORE PROCESSING
}
I guess one or both of us are missing something. mysql_fetch_array()
PHP: mysql_fetch_array - Manual
Returns an array that corresponds to the fetched row and moves the internal data pointer ahead.
$row = mysql_fetch_array($result); when I need to advance to the next row in the middle of a while loop (I was missing “;”)
Thanks,
Niche