Füge mal nach jedem Query folgende Zeile ein:

PHP-Code:
if (mysql_error()) echo mysql_error();