regenx
-
Posts
137 -
Joined
-
Last visited
-
Days Won
1
Posts posted by regenx
-
-
Wh
The best method are prepared statements
What do you mean with prepared statements?
btw...
-- this is wrong way
$string = mysql_real_escape_string($string);
$string = stripslashes($string);
$string = strip_tags($string);
-- this is safe way
$string = stripslashes($string); // Keep your usernames clean
$string = strip_tags($string); // Kill all tags like html tags, etc..
$string = mysql_real_escape_string($string); // Anti-injection
-
<?php
function madSafety($string) {
$string = stripslashes($string);
$string = strip_tags($string);
$string = mysql_real_escape_string($string);
return $string;
}
Your php register code here....
.....
Your end code .....
?>
Something like that ....
Good Luck & Have Fun!
-
Yes, this function is perfect! No programs or php/mysql programmer can not pass such a function ;)
-
If you intend to use this simple php script don't forget this secure - It's for your own good and for all users of your site.
-
Hi, with this php function you can stop 99% from SQL injections on your php register page.
From today you are safe! Trust me. I recommend you to use this function...
function madSafety($string) {
$string = stripslashes($string);
$string = strip_tags($string);
$string = mysql_real_escape_string($string);
return $string;
}
-
LOL, where is mysql_real_escape_string in your syntax ?
http://www.codehive.net/Secure-Input-and-Preventing-MySQL-Injection-2.html
Have fun!
-
Nice program. Ty for share with us.
-
LOL only vulnerable querys Where are the mysql_real_escape_strings ?
[PHP] Utilities
in Web Scripts
Posted
And for login? Someone can share a login script for both WOTLK and Cataclysm (I mean for expansion 2 and 3). Thank you. For Login script you just need to connect to auth, right? Who can help me?