Re: while loop
| From: | Michael Hall | Date: | Tue, 10 Apr 2001 00:20:03 +0000 |
| Subject: | Re: while loop | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47920@lists.php.net to get a copy of this message | ||
$query = mysql_query("some SQL here");
while ($row = mysql_fetch_array($query)) {
do stuff;
}
Mick
On Tue, 10 Apr 2001, Jacky wrote:
> Hi people
> I am more like ASP programmer and new to PHP, In ASP, when we want to take all records in
> dayabase to display. After we did do the query, we call " Do while not RS.EOF ( mean do while
> not end of record file) , and display record accroding to the query.
> Is there anything that do teh same in PHP??
> cheers
> Jack
> jacky@activelifestyle.com
> "There is nothing more rewarding than reaching the goal you set for yourself"
>