Re: while loop
| From: | Lindsay Adams | Date: | Tue, 10 Apr 2001 01:43:28 +0000 |
| Subject: | Re: while loop | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47917@lists.php.net to get a copy of this message | ||
On 4/10/01 6:22 AM, "Jacky" <jacky@activelifestyle.com> 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"
>
sure,
while ($row = ODBC_fetch_into($result) {}
will loop through every result record found, putting the contents of each
record into an array, $row.
see the www.php.net/manual
for a general overview of the language