September 2001
Intermediate to advanced
768 pages
32h 45m
English
string mysql_error([mysql link connection]) Gets the error message from the last MySQL operation.
Returns:
String on success; FALSE on error
Description:
mysql_error() returns the MySQL error message from the last MySQL function call that invoked a MySQL client routine. If no error occurred, an empty string ("") is returned.
Version:
PHP 3+, PHP 4+
See also:
To get the numeric error code from the last MySQL query:
mysql_errno()
Example:
<?php // Included code that connects to a MySQL server and sets a default database // See the MySQL Functions chapter introduction for the source code for the file include ('mysql_connect.inc.php'); // Go insane and ... |
Read now
Unlock full access