Re: var_dump() results

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Europus wrote:
T.Lensselink wrote:

It doesn't loop through all rows because you use mysql_fetch_row. Wich does exactly what it's name tells you. It fetches one single row.

Doh! Yes I'm brand new at PHP, though I've been doing HTML/CSS forever.
That doesn't seem to mean much to a PHP/MySQL installation.
Everybody has to start somewhere :)

So instead of looping through the
whole result set. You are looping through every cell off the result set. You're probably better of using mysql_fetch_array().

I made that change, now it reports the 1st row 4 times and never
gets on to the 2nd or subsequent rows. What the ???
Can you show some code?

Ulex




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux