Originariamente inviato da filippo.toso
Ti suggerisco di iniziare implementando un codice come quello descritto nel manuale ufficiale:

http://www.php.net/mysql_query Example #1 Invalid Query
Mi da questo errore :
Invalid query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE 1==1' at line 1