Jump to content
MakeWebGames

Register Page


Z?v??
 Share

Recommended Posts

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')");
Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...