prova ad aggiungere:

echo "(mysql_error())";