Re: var_dump() results
| From: | T.Lensselink | Date: | Sun, 13 Jan 2008 18:08:40 +0000 |
| Subject: | Re: var_dump() results | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267183@lists.php.net to get a copy of this message | ||
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