Showing posts with label sql. Show all posts
Showing posts with label sql. Show all posts

Wednesday, June 10, 2009

PHP - How to prevent sql injection | prevent hacker using sql injection attack

$query_login = "SELECT * FROM user WHERE username = '" . mysql_real_escape_string(addslashes($username)) . "'";