Re: display all results
| From: | Jason Wong | Date: | Thu, 19 Dec 2002 15:44:26 +0000 |
| Subject: | Re: display all results | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128873@lists.php.net to get a copy of this message | ||
On Thursday 19 December 2002 23:11, Simon wrote:
> Hi,
>
> I have 6 records in mysql. How can i display all of them, but not using
> while. Do i have to use 6 queries. Results need to be hard formated, so
> that s the reason why i cant use while.
Not really sure what you need here but I guess you probably want something
like:
mysql_query(...);
$result = mysql_fetch_*(...);
// do something with the 1st record
$result = mysql_fetch_*(...);
// do something with the 2nd record
...
...
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
"Those who will be able to conquer software will be able to conquer the
world."
-- Tadahiro Sekimoto, president, NEC Corp.
*/