Created
March 21, 2013 20:37
-
-
Save rantastic/5216511 to your computer and use it in GitHub Desktop.
PHP: PDO update single
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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