That means that your query failed. If mysql_query() fails, then $result is FALSE, which is not a valid resource handle.
You need to call mysql_error() to get the actual error message from MySQL as to why the query failed.
You should do this after ALL mysql functions are called, including _connect(), _select_db(), _query(), etc...
Take care,
Nik
http://www.bigaction.org/