Let $stmt is a mysql query
if ($stmt->execute()) {
// it worked
} else {
echo "Error Occurred. Try again";
}
In which cases the $stmt not be executed without a PHP fatal error and the message "Error Occurred. Try again" appears to the client ?
Aucun commentaire:
Enregistrer un commentaire