mysql_error([link_identifier])

Description: Returns the error message text from the previous MySQL operation, or the empty string if no error occurred.

Example:

if ($result = mysql_query ("select * from bad_table")) {
    # query worked okay, keep going
} else {
    echo "A database error occurred!<BR>
";
    echo mysql_error() ." (error no. ". mysql_errno() .")<BR>
";
    exit;
}

See also: mysql_errno()

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.152.87