Hello Sandeep,
On 03-May-01 20:07:51, you wrote:
>just a quick thing. i've got loads of info in mysql, which i extract
>and then use a "while ($r = mysql_fetch_array($result)) {" to output
>the result.
>the only thing is, because its a loop, all results look the same,
>whereas i want the first
You can keep a count of what row in the result you are and use that
accordingly to format your results...
-Original Message-
From: Sandeep Hundal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 03, 2001 7:10 PM
To: php
Subject: [PHP] simple database extraction problem :(
hi all!
just a
Clue = "Nested Loops"
--
phill
"Sandeep Hundal" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi all!
>
> just a quick thing. i've got loads of info in mysql, which i extract
> and then use a "while ($r = mysql_fetch_array($result)) {" to output
> the result.
hi all!
just a quick thing. i've got loads of info in mysql, which i extract
and then use a "while ($r = mysql_fetch_array($result)) {" to output
the result.
the only thing is, because its a loop, all results look the same,
whereas i want the first row to be displayed differently than the
next 4
4 matches
Mail list logo