Greetings once again,
Today I hope to have a challenge for you. :)
I've created a query which returns 1 record. This is confirmed when testing
it in MySQL itself.
Now PHP sees that there is 1 record in the result, but is completely
unwilling to show the information.
The css responsible for that
Take out the while statement--
i.e. simply use:
$row = mysql_fetch_array($result);
the way you have things constructed now, the while statement evaluates true on the
first iteration and $row equals the result row from the query. Because the while
returned true, it is evaluated a second time, r
the lack of proper close html code will cause a no show in Netscape, but will show in
Ie
|
|
|
|CO:
|$co
|
|
|
|IRC NICK<<<-
>Take out the while statement--
>i.e. simply use:
>
>$row = mysql_fetch_array($result);
>
>the way you have things constructed now, the while statement
>evaluates true on the first iteration and $row equals the result row
>from the query. Because the while returned true, it is evaluated a
>seco
yes, of course you're right-- gotta stop working so late... the use of
the while statement where it wasn't needed threw me off, I guess.
Paul DuBois wrote:
>> Take out the while statement--
>> i.e. simply use:
>>
>> $row = mysql_fetch_array($result);
>>
>> the way you have things constructed
I do, however, want to notice that your tip worked IB :)
THanks again,
Kevin
-Oorspronkelijk bericht-
Van: Indioblanco [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 23 november 2001 6:30
Aan: Paul DuBois
CC: Kevin Schaaps; [EMAIL PROTECTED]
Onderwerp: Re: [PHP-DB] Result is not empty