MySQLi error handling

Posted by Spoonface on Stack Overflow See other posts from Stack Overflow or by Spoonface
Published on 2010-05-28T20:05:37Z Indexed on 2010/05/28 20:12 UTC
Read the original article Hit count: 235

Filed under:
|
|
|

Is it possible to specify that MySQLi sends any errors and warnings to the PHP default 'error_log' directive? I can't seem to find any error options for the class specification, and I don't wish to handle errors manually like so:

if ($result = $mysqli->query("...")) {  }
else
    handle $mysqli->error;

© Stack Overflow or respective owner

Related posts about php

Related posts about error-handling