Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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
 
PREVIOUS NEXT
Tagged: #php #pdo #check #update #query #successful
ADD COMMENT
Topic
Name
9+1 =