Z?v?? Posted April 16, 2007 Posted April 16, 2007 "; $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; if(file_exists('ipbans/'.$ip)) { die("Your IP has been banned, there is no way around this. Quote
hamster01 Posted April 16, 2007 Posted April 16, 2007 Re: Register Page just look at this line: $db->query("INSERT INTO users (username, login_name, name, last, age, aog, msn, aim, aol, yahoo, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( '{$username}', '{$username}', '{$name}', '{$last}', '{$age}', '{$aog}', '{$msn}', '{$aim}', '{$aol}', '{$yahoo}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')"); Quote
CraigF Posted April 16, 2007 Posted April 16, 2007 Re: Register Page DeathStar reply to my PM's Quote
hamster01 Posted April 16, 2007 Posted April 16, 2007 Re: Register Page got none.. Answer me on msn Quote
CraigF Posted April 16, 2007 Posted April 16, 2007 Re: Register Page 22:41:27 [email protected] says: HI that was the last msg i seen from you, should we talk in your game? i cant talk on msn it doesnt show me msgs Quote
Z?v?? Posted April 16, 2007 Author Posted April 16, 2007 Re: Register Page Whats wrong with that line? It all looks good to me. :| Quote
hamster01 Posted April 16, 2007 Posted April 16, 2007 Re: Register Page well ,username, login_name, name, last, age, aog, msn, aim, aol, yahoo, userpass thats incorect Quote
Z?v?? Posted April 16, 2007 Author Posted April 16, 2007 Re: Register Page Show me the complete code with your changes in it. Cause I don't understand whats wrong in that. Quote
hamster01 Posted April 16, 2007 Posted April 16, 2007 Re: Register Page username, login_name, name, userpass thats the order dont know hwo you put it Quote
Z?v?? Posted April 16, 2007 Author Posted April 16, 2007 Re: Register Page What are you talkin about? lol Quote
hamster01 Posted April 16, 2007 Posted April 16, 2007 Re: Register Page nevermind im hard explaining Quote
Decepti0n Posted April 16, 2007 Posted April 16, 2007 Re: Register Page You don't need it in the correct order And I couldn't find much wrong with it at first, it seems to match up, could always add a notice in game if they haven't picked one, to go get one Quote
hamster01 Posted April 17, 2007 Posted April 17, 2007 Re: Register Page Decrypti0n i though it was: $db->query("INSERT INTO users (username, login_name, name, last, age, aog, msn, aim, aol, yahoo, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( '{$username}', '{$username}', '{$name}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP', '{$last}', '{$age}', '{$aog}', '{$msn}', '{$aim}', '{$aol}', '{$yahoo}')");[code] now i only see its: $db->query("INSERT INTO users (username, login_name, name, last, age, aog, msn, aim, aol, yahoo, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( '{$username}', '{$username}', '{$name}', '{$last}', '{$age}', '{$aog}', '{$msn}', '{$aim}', '{$aol}', '{$yahoo}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')"); I'll have a look at that script. ;)[/code] Quote
Z?v?? Posted April 17, 2007 Author Posted April 17, 2007 Re: Register Page Ok, thanks deathstar. :-) Quote
vinyl Posted April 17, 2007 Posted April 17, 2007 Re: Register Page if I am failing to understand the posts, forgive me.... the order is strict if the columns are NOT named, if they are then the values will be INSERTED in the order scripted by the column list value1->column1 of "INSERT into (column1, etc...) VALUES(value1, etc... also users.gender is type 'Enum' and as such can only be 'Male' or 'Female' and is case-sensitive I believe. (somebody correct me here if I'm wrong) if none of this relates to the problem, or I'm looking at something covered/checked/known already....sorry. Quote
hamster01 Posted April 17, 2007 Posted April 17, 2007 Re: Register Page I dont think it scase sensitive. I would just keep on searching.. normally an weird error Try this at end of querys: or die("Error aoorured at $query"); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.