Re: mysql_fetch_array
| From: | Ahmed | Date: | Wed, 06 Sep 2000 17:13:33 +0000 |
| Subject: | Re: mysql_fetch_array | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-15554@lists.php.net to get a copy of this message | ||
and how I can do that ??
""Robert J. Cissell"" <rcissell@tampabay.rr.com> wrote in message
news:026301c01824$49f90640$0100a8c0@development01...
> 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
> >
>
>
> --
> 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
>