Answers for "php pdo check if update query successful"

PHP
0

php pdo check if update query successful

$req = $db->prepare('UPDATE `table` SET `content`= ? WHERE `id` = ?');
var $success = $req->execute($content,$id);
//execute() return true on success and false on fail
Posted by: Guest on October-28-2020

Browse Popular Code Answers by Language