[PHP-DB] Result is not empty

2001-11-20 Thread Kevin Schaaps
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

Re: [PHP-DB] Result is not empty

2001-11-20 Thread Indioblanco
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

Re: [PHP-DB] Result is not empty

2001-11-20 Thread phpnet
the lack of proper close html code will cause a no show in Netscape, but will show in Ie | | | |CO: |$co | | | |IRC NICK<<<-

Re: [PHP-DB] Result is not empty

2001-11-22 Thread Paul DuBois
>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

Re: [PHP-DB] Result is not empty

2001-11-22 Thread Indioblanco
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

RE: [PHP-DB] Result is not empty

2001-11-23 Thread Kevin Schaaps
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