|
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.
|