Re: mysql_fetch_array

From: Date: Wed, 06 Sep 2000 17:02:50 +0000
Subject: Re: mysql_fetch_array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15551@lists.php.net to get a copy of this message
reset your array pointer for $results to the beginning of the array, i think. ----- Original Message ----- From: "Ahmed" <ahmed@mazika.com> To: <php-general@lists.php.net> Sent: Wednesday, September 06, 2000 1:05 PM Subject: [PHP] mysql_fetch_array > I have a strange problem with nested while loops > take alook at this code > > while ( foo ){ > blah blah > . > . > . > while ( $data = mysql_fetch_array($results){ > echo $data[name]; > } > . > . > . > blah blah > } > > this code works pretty good when excuting the first foo condition but then > the inside while stops excuting !! the variable $data is not printing any > more ! although it was expected to excute and print the same results as the > first round. > > does any one has a clue of what is going on ?? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#15551) next »