Is there something I need to set in php to make it display mysqli prepared statement errors?
$stmt = $db->prepare("my query string...");
if ( false===$stmt ) {
echo $db->error;
}
It echoes nothing.
Is there something I need to set in php to make it display mysqli prepared statement errors?
$stmt = $db->prepare("my query string...");
if ( false===$stmt ) {
echo $db->error;
}
It echoes nothing.
I needed to make $db global in the function. It works now!