in pratica puoi fare

Codice PHP:
if(mysql_query("INSERT INTO ..."))
   echo 
"Query eseguita";
else
  echo 
"Query non eseguita"