mysql_fetch problem
| From: | Alec Solway | Date: | Fri, 21 Feb 2003 06:54:45 +0000 |
| Subject: | mysql_fetch problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-136459@lists.php.net to get a copy of this message | ||
I have the following call:
SELECT * FROM facility LEFT JOIN fuel USING(facilityID) LEFT JOIN fuelType ON fuel.TypeID=fuelType.ID WHERE facility.facilityID=$facilityID
The data is returned properly using mysql_fetch_row(), but mysql_fetch_assoc() and mysql_fetch_object() set the ID of the facility to
NULL for one of the returned entries. It also looks properly when issued in the mysql commander center. Any ideas?