public
Created

Kennedy Article on Rails Secuity

  • Download Gist
build_model.php
PHP
1 2 3 4 5 6 7 8
<?php
// ...
public function create_some_model($params) {
// Database handle setup to $dbh
$stmt = $dbh->prepare("INSERT INTO some_models (first_name, surname) VALUES (:first_name, :surname");
$stmt->execute($params);
}
?>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.