mysql_fetch_array
| From: | Ahmed | Date: | Wed, 06 Sep 2000 17:05:39 +0000 |
| Subject: | mysql_fetch_array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-15549@lists.php.net to get a copy of this message | ||
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 ??