Re: [PHP4BETA] looping
| From: | David Robley | Date: | Mon, 14 Feb 2000 00:01:25 +0000 |
| Subject: | Re: [PHP4BETA] looping | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-10229@lists.php.net to get a copy of this message | ||
On 12 Feb, mike@stratabase wrote:
> How would i go about looping this.
>
> $iwave2Result = mysql_query ("SELECT signupdate FROM iwave2");
> $row = mysql_fetch_array($iwave2Result);
There is an example in the docs at
/manual/function.mysql-fetch-array.php3 at your favourite PHP mirror.
Essentially it goes like:
while($row = mysql_fetch_array($iwave2Result)):
do stuff with the array
endwhile;
Cheers
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA