You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dimaslanjaka in addition to @lincanbin's answer, you can put your execute statement in a try catch block, so if there's any execution error error, you can detect it. Eg.
try {
if ($DB->query("INSERT balabalabalabala") > 0) {
// success
} else {
// not
}
} catch (PDOException $e) {
//codes to run upon getting execution error, goes here
}
how can i determine query are success or not ?
some like if ($execute = DB->query(blablabla)){} ?
The text was updated successfully, but these errors were encountered: