Possible Duplicate:
How to prevent SQL injection?
I'm trying to figure out how to do a parameterized query via PDO doing a SELECT, and right now I've got this code:
function user_login($username, $password) {
$conn = connection_getConnection();
$stmt = $conn->prepare("SELECT `password` FROM `users` WHERE `username` = :username");
$row = $stmt-> #WHAT DO I DO HERE?
if (empty($row)) {
}
}
So, I placed a comment on the line I'm kind of lost on. Please help me out from here.
Thanks!