coding style fix

This commit is contained in:
Peter Kokot
2013-12-08 16:02:22 +01:00
parent 18ec01b629
commit 710cba2569
2 changed files with 3 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ which will delete all of your users! Instead, you should sanitize the ID input u
<?php
$pdo = new PDO('sqlite:users.db');
$stmt = $pdo->prepare('SELECT name FROM users WHERE id = :id');
$stmt->bindParam(':id', $_GET['id'], PDO::PARAM_INT); //<-- Automatically sanitized by PDO
$stmt->bindParam(':id', $_GET['id'], PDO::PARAM_INT); // <-- Automatically sanitized by PDO
$stmt->execute();
{% endhighlight %}