Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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!';
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #pdo #check #execution #worked
ADD COMMENT
Topic
Name
7+4 =