Created
July 10, 2011 19:33
-
-
Save gaurish/1074879 to your computer and use it in GitHub Desktop.
Mysql PHP - Secure way
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$query = sprintf("SELECT * FROM `User` WHERE UName='%s' AND Pass='%s'", | |
mysql_real_escape_string($Uname), | |
mysql_real_escape_string($Pass)); | |
mysql_query($query); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment