When an error occurs during SQL statement insertion, write the error content to the log interface file and insert data into the database. if the execution fails, how can I write the reported error into the log? ------ Solution ------------------ after the insert operation fails, record mysql_error. ------ Solution -------------------- the mysqli_error parameter needs to be passed in, but you did not pass in the error when inserting the SQL statement, write the error content to log
Interface files insert data into the database. if the execution fails, how can I write the reported errors in the log?
------ Solution --------------------
After the insert operation fails, record mysql_error.
------ Solution --------------------
Mysqli_error must be passed in, but you did not pass in.
$ Link = mysqli_conn...
Mysqli_error ($ link );
------ Solution --------------------
Mysql_error ().
For mysqli_error (), you must add a parameter for the mysqli object.
Http://www.nusphere.com/kb/phpmanual/function.mysqli-error.htm