Feb 21, 2014 09:13 PM
(This post was last modified: Feb 21, 2014 09:14 PM by TRH4CK.)
Hey !
What up buddys ;) Hope you guys are all doing great!
I had a small question about SQL Injection and PDO.
I currently have this code:
Actually I use codes like these everywhere on my site.
But the question is: Is it possible to SQL Inject in that code ? And is it possible to do any other kind of injection to it ?
Thanks in advance !! :)
What up buddys ;) Hope you guys are all doing great!
I had a small question about SQL Injection and PDO.
I currently have this code:
PHP Code
<?php
$hash = htmlspecialchars($_GET['h']);
$query1 = $dbh->prepare("SELECT * FROM `uslist` WHERE `uqh` = ?");
$query1->bindValue(1, $hash);
$query1->execute();
$q1f = $query1->fetch(PDO::FETCH_ASSOC);
Actually I use codes like these everywhere on my site.
But the question is: Is it possible to SQL Inject in that code ? And is it possible to do any other kind of injection to it ?
Thanks in advance !! :)



![[Image: 8Yoto.png]](https://i.imgur.com/8Yoto.png)
