lundi 21 janvier 2019

In which cases the Mysql statement not be executed without a PHP fatal error?

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