Skip to content

Instantly share code, notes, and snippets.

@ruprict
Created March 18, 2012 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruprict/2072181 to your computer and use it in GitHub Desktop.
Save ruprict/2072181 to your computer and use it in GitHub Desktop.
Kennedy Article on Rails Secuity
<?php
// Assuming we have setup the connection
$stmt = $dbh->prepare("INSERT INTO some_models (first_name, surname) VALUES (:first_name, :surname");
$stmt->bindParam(:first_name, $some_variable);
$stmt->bindParam(:surname, $another_variable);
$stmt->execute();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment