Created
March 21, 2013 20:34
-
-
Save rantastic/5216489 to your computer and use it in GitHub Desktop.
PHP: PDO insert 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("INSERT INTO tablename (var1, var2, var3) VALUES (?,?,?)"); | |
$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