Kennedy Article on Rails Secuity
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
<?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); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment