'Grammar.' Also, how about rank protection too, if a user isn't above rank 6, or whatever, then the user gets re-directed to the home-page or an error page
Should just have 'Incorrect access level, please try again' as it's more professional. Also, a consideration would be to make an housekeeping termination system where if a user has tried to login to the housekeeping more than 3 times, the user gets blocked from the housekeeping :)
Thats an emu problem, not SWF problem.
Also, no credits to Sulake? At least 50% should be to Sulake considering they made mostly everything in that pack.
Hey,
I'm wanting a news comments system and homes system like the below:
I'm willing to pay a small amount of cash from PayPal if someone can code them both. Cheers, Josh
Code works, but if I attempt to put the referal in the text box eg. 'asjerjfkgsle' then the form still submits:-
<?php
$referal = mysql_real_escape_string(stripslashes(trim(htmlspecialchars($_GET['r']))));
if (isset($_GET['r']))
{
$query1 = mysql_query("SELECT username FROM users WHERE...
That code throws a PHP error, the page won't even load, and surely it must be easier to do it than that. Also, $_GET['user'] is an undefined var so I changed it to $_GET['referal']. Still shows PHP error
Still does the same thing :l
<?php
$referal = mysql_real_escape_string(stripslashes(trim(htmlspecialchars($_GET['referal']))));
$checkRef = mysql_num_rows(mysql_query("SELECT * FROM `users` WHERE `username` = '".$referal."'"));
if($checkRef > 0) {
die('Error');
}
?>
Thats defined at the...
Code doesn't seem to work. It doesn't say anything at the top now, but when I hit 'Create Account' even with a random Referal such as 'HERHJREIEWUREE248ERMDFS' which doesn't exist in the DB, it still submits and makes the account
Hey there developers,
I'm creating a referal system for my CMS (Uber) and i'm wanting it to throw an error if the value inputted in a text box isn't a username in the database, heres my code:
$checkRef = (mysql_result(mysql_query("SELECT `username` FROM `users` WHERE `username` =...