Created
April 3, 2013 17:03
-
-
Save MissAllSunday/5303107 to your computer and use it in GitHub Desktop.
comparison
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
// Doctrine | |
$sql = "SELECT * FROM articles WHERE id = ?"; | |
$stmt = $conn->prepare($sql); | |
$stmt->bindValue(1, $id); | |
$stmt->execute(); | |
// SMF | |
$result = $this->_smcFunc['db_query']('', ' | |
SELECT * | |
FROM articles | |
WHERE id = {int:id}', | |
array( | |
'id' => 1 | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment