Re: mysql_fetch_array problem? O.o
| From: | Burhan Khalid | Date: | Thu, 15 Apr 2004 07:27:13 +0000 |
| Subject: | Re: mysql_fetch_array problem? O.o | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183426@lists.php.net to get a copy of this message | ||
Jeff Ostapchuk wrote:
Ok, I have no clue what version of PHP I have installed, 4.??.??, and I have like the newest version of MySQL insatlled, and PHP and MySQL work fine together, excpet when I use mysql_fetch_row($query) then I have problems, mysql_fetch_array($query) works fine, but not mysql_fetch_row($query). Why doesn't it work? I tried installing the new PHP 5 version, but when i extracted it from the zip file into the C:\PHP folder and then PHP didn't even work at all.... (so... u can kinda tell i'm a still a noobie at this ^.^;;; ) Thank in advance to whoever.mysql_fetch_row() will return false if you are already on the last row in your result set. You also need to pass both mysql_fetch_array() and mysql_fetch_row() the resource id from a successful mysql_query() call.