I just read this it explains clearly for object oriented style error handling.
This page also explains the same.
I want to know how to find whether a prepared statement fails, and what is the error.
$stmt = mysqli_prepare(ConnectionObject,Query);
if($stmt == false)
{
// Found statement fails
// How to find what is the error
// mysqli_stmt_error($stmt); It will fail because $stmt is boolean[false].
}
How to find the exact error?