Re: Select

From: Date: Tue, 14 Aug 2001 15:12:47 +0000
Subject: Re: Select
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-62647@lists.php.net to get a copy of this message
Jeremy Morano wrote: > > ... > > $data=mysql_fetch_row($result); > $count=$data[0]; > > echo $count; > > Yet the only result I get is the first value of the first > column............. > Of course, and $data[1] is the first value of second column, etc. If you want to get all result, use while-loop like this: <? while ($data=mysql_fetch_row($result)) { ... // do here something with $data array ... } ?> -- Pavel a.k.a. Papi

« previous php.general (#62647) next »