Our Scripts Vault contains many game scripts that you can use to create your own game!
Btw... why the capital letter in variable names? So much extra shift pressing...
But your function only works for mysql querys. Strip tags has its uses, htmlspecialchars definitely has its uses.You need to escape specificaly for the situationYour function for example won't protect you against XSS...if you don't use one of previously mentioned functionsthan your sites are vulnerable to it (I hope I scared you now ,not always bad to be worried )... but I think this all was mentioned here beforeBtw... why the capital letter in variable names? So much extra shift pressing...
Quote from: Nox on July 23, 2009, 05:20:31 PMBtw... why the capital letter in variable names? So much extra shift pressing...Karlos always does it always has guess its a habit. Or maybe he just likes Capital on every first word
Quote from: Crazy-T on July 24, 2009, 03:34:42 AMQuote from: Nox on July 23, 2009, 05:20:31 PMBtw... why the capital letter in variable names? So much extra shift pressing...Karlos always does it always has guess its a habit. Or maybe he just likes Capital on every first word Crazy-T/Alan/BadGirl or whatever ou wish to call yourself... You should know I've done it for ages, and I will continue displaying my code how I like.
LOL, reputation +1, at least one person who don't believe in the "proper coding style" crap
don't believe in the "proper coding style" crap
Quotedon't believe in the "proper coding style" crap That's what we get for trying to make Karlos' life easier
Quote from: Chris on July 24, 2009, 04:44:17 AMLOL, reputation +1, at least one person who don't believe in the "proper coding style" crap I like to have my own style, I don't like to follow others, mine suits me and I like it
$username = mysql_real_escape_string(trim($_POST['name']));$sql = $db->execute('SELECT `username` FROM `players` WHERE UPPER(`username`) = UPPER(\''. $username .'\')');if($db->row_count($sql)){echo "This username is already exists. Please pick a new username.";$error = true;}else{echo "Your account has been made.<br />";echo "Your details are<br />";echo "Username: ". stripslashes($_POST['name']) ."<br />";echo "Password: ". $_POST['password'] ."<br />";echo "<a href='login.php'>Click here to login your account</a>";$error = false;}