Jump to content
MakeWebGames

mysql help creating table


devonbnice

Recommended Posts

Hello, I'm not very familiar with sql. I do alright with php.

But I'm trying to create a table that could be added into users.

that would have to values such as 1 and 2.

I'm trying to do this so the users can have some customization free to have the game display how they want it.

such as the default would be the number 1 in the table/column (whatever its called.) and if they wanted to turn it off then it would update the table/column and replace the number 1 with the number 2.

 

so when im coding with php.

I can just use "if" statements.

EX.

If ($ir['profilesetup'] == 1 ) {

Rest of code here

}

if ($ir['profilesetup'] == 2 ) {

Code Here.

}

Im sure you guys get what im saying.

I just dont know how to create the sql bid.

could anyone paste here how i would set this up?

Where every you name the column/table just put "NAMEHERE"

Thanks very much :)

- Devon.

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.

×
×
  • Create New...