Page 1 of 1

Check weather database query succeeded

Posted: Sat Nov 25, 2006 2:09 am
by SmokyBarnable
Is there an easy way to check to see weather an INSERT INTO mysql command is successful or not?

Posted: Sat Nov 25, 2006 3:19 am
by volka
Yes. Exactly how depends on the function/method you're using to send the query.
e.g. http://de2.php.net/mysql_query[quote]For other type of SQL statements, UPDATE, DELETE, DROP, etc, mysql_query() returns TRUE on success or FALSE on error.[/quote]