View Single Post
Old 09-20-2007, 07:01 AM   #5 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,079
Thanks: 115
Tanax is on a distinguished road
Default

PHP Code:
$pass mysql_escape_string($_POST['pass']);
$sql printf("SELECT `pass` FROM `users` WHERE `pass` = %s"$pass);
$query mysql_query($sql); 
That would be pretty foolproof?

Anything else that I can add to make it safer?
Tanax is offline  
Reply With Quote