Check weather database query succeeded
Moderator: General Moderators
- SmokyBarnable
- Forum Contributor
- Posts: 105
- Joined: Wed Nov 01, 2006 5:44 pm
Check weather database query succeeded
Is there an easy way to check to see weather an INSERT INTO mysql command is successful or not?
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]
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]