📜  php pdo 检查执行是否有效 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:32.108000             🧑  作者: Mango

代码示例1
# Returns TRUE on success or FALSE on failure
$status = $STH->execute($params);

if ($status) {
   echo 'It worked!';
} else {
   echo 'It failed!';
}