Jump to content
MakeWebGames

Recommended Posts

Posted

'Kay.. I am a total newbie at PHP and stuff... I was wondering, for my game I would like to add in gender and a race. I have it set up in register.php, though, where else would I put it so that it would take affect?

Note: When I make it.. It says it is made, but the character does not go into the user database. =/

Posted

Re: Registery

No, Danny. It was not there. Also, I have decided that I do not want you to code for me. Reason being: I want to learn to code... Not have someone else just do it. =/ Anywho, since I seem to still have trouble. I am using the 'lite' version, it did not come with a gender option. Any player that signs up is automatically male. I have female and male in the db I think, the default is set to male though. I think that I may be close to getting it, though I am trying PHP with having very little to almost no knowledge.

Posted

Re: Registery

in ur table have a jender table then in ur register have something like

if ($_POST[gender]==M) {

$gender=M;

} else {

$gender=F;

}

then edit the query to allow this

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.

×
×
  • Create New...