Created
March 21, 2011 10:28
-
-
Save mattattui/879267 to your computer and use it in GitHub Desktop.
Brief PDO prepared statement snippet
This file contains hidden or 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
<?php | |
$query = 'SELECT * FROM my_table WHERE title = :title'; | |
$stmt = $db->prepare($query); | |
$stmt->bindValue(':title', $title); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment