Skip to content

Instantly share code, notes, and snippets.

@MissAllSunday
Created April 3, 2013 17:03
Show Gist options
  • Save MissAllSunday/5303107 to your computer and use it in GitHub Desktop.
Save MissAllSunday/5303107 to your computer and use it in GitHub Desktop.
comparison
// 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