View Single Post
Old 08-05-2007, 01:24 PM   #5 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,166
Belisarius is on a distinguished road
I use the MDB2 package when I work with databases in PHP, so I'm not terribly familiar with the included MySQL functions, but it appears that if the query fails mysql_query() returns false. Check to see if $results is false, and if it is, get the error message from MySQL by using mysql_error(). That should give you a clue as to why it's failing.
__________________
GitS
Belisarius is online now   Reply With Quote