Answers for "php pdo check if execution worked"

PHP
0

php pdo check if execution worked

# Returns TRUE on success or FALSE on failure
$status = $STH->execute($params);

if ($status) {
   echo 'It worked!';
} else {
   echo 'It failed!';
}
Posted by: Guest on October-12-2021

Browse Popular Code Answers by Language