Skip to content

Instantly share code, notes, and snippets.

@rantastic
Created March 21, 2013 20:37
PHP: PDO update single
$stmt = $db->prepare("UPDATE tablename SET tableRow = ?, tableRow2 = ? WHERE tableRow3 = ?");
$stmt->execute(array($var1,$var2,$var3));
if($stmt->rowCount()>0){
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment