📅  最后修改于: 2022-03-11 14:54:42.743000             🧑  作者: Mango
prepare("UPDATE user SET name=:name WHERE id=:id");
$updatedCount = $update_stmt->execute(['name' => 'Bernard Arhia','id' => 2]);
//$updateCount will return true if query was successful else it will return false