Ich hoffe, in deiner config.php stehen die MySQL-Daten.
PHP-Code:
mysql_connect("HOST","BENUTZER","PASSWORT");
mysql_select_db("DATENBANK"); 
Lass dir den MySQL-Error ausgeben nach deinem Query.
PHP-Code:
echo mysql_error();