The starter question?

Discussion in 'MySQL' started by brutalak, Jan 25, 2010.

  1. #1
    How can i add a select box custom field to a table? What must be the values?
    Help please.
     
    brutalak, Jan 25, 2010 IP
  2. Warll

    Warll Peon

    Messages:
    122
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Has anyone really been far even as decided to use even go want to do look more like?

    Seriously I cannot even tell what you are trying to do, you need to provide more information.
     
    Warll, Jan 25, 2010 IP
  3. jbourne34

    jbourne34 Member

    Messages:
    94
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    Go to phpMyAdmin and scroll down to "Create new table on database", put in the new tables name and put in the amount of fields you want. While browsing the newly created table you can edit the fields as needed. All the values will depend on what you're doing exactly. Without any of that info, I doubt you'll get the answers you want.
     
    jbourne34, Jan 25, 2010 IP
  4. fourdesign

    fourdesign Member

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #4
    Are you asking how to add the contents of a select box to a table? If I am understanding your question correctly then you have a select box with several option (OptionA, OptionB, OptionC). You want to add a field to the table that will accept those values and only those values? Well if that is the case then you can do one of two things. You can create a field as a varchar and accept any series of variable characters up to the specified length or you can create a field as an enum. An enum will allow you to input only the values you specify into that field. In this example your enum would contain the values 'OptionA','OptionB','OptionC'
     
    fourdesign, Jan 26, 2010 IP