Re: mysql_fetch_array

From: Date: Wed, 06 Sep 2000 20:00:31 +0000
Subject: Re: mysql_fetch_array
Groups: php.general 
Request: Send a blank email to php-general+get-15586@lists.php.net to get a copy of this message
Hi, there's a closing prenthesis missing after while ( $data = mysql_fetch_array($results) but a) the interpreter should catch that, so I assume that b) the error is only in your quoted example. But if a) and b) was false it might be another thing to look at. Frank At 20:05 6/9/00 +0300, you wrote: >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 (#15586) next »