detecting errors in mysqli prepared statement [duplicate]
问题 This question already has an answer here : mysqli_fetch_assoc() expects parameter / Call to a member function bind_param() errors. How to get the actual mysql error and fix it? (1 answer) Closed 6 months ago . I have a custom error handler in place but I need to know where to test for errors within my prepared statement. Do I test at all prepared() , bind() , execute() and store_result() stages or just selected stages? $statement = $databaseHandler->mysqli->prepare($query) or trigger_error(