Jump to content



  • Please log in to reply
1 reply to this topic

#1 corillo181

  • Members
  • PipPipPip
  • Advanced Member
  • 896 posts

Posted 18 April 2006 - 08:09 PM

my question is simple.. if i put a list value son a html form and i want to get that value into my database do i need to put all the same values in side the ENUM() type?

#2 titangf

  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts
  • LocationColorado, USA

Posted 18 April 2006 - 09:25 PM

You don't have to do it that way but you can.

Think of it this way...

If you HTML form that could be the ENUM figure is already limited by a drop down box then essentially the form itself is doing the ENUM for you and thus you wouldn't have to put it into the database that way. You could leave it as a VARCHAR. Now if your database is populating the dropdown box then Yes it need to be an ENUM so that it has values to pull from.

Hope that gives you some insite.
[!--coloro:#3366FF--][span style="color:#3366FF"][!--/coloro--][a href="http://www.csszengarden.com/" target="_blank"]css zen garden - beautiful design with the programmer in mind[/a][!--colorc--][/span][!--/colorc--]

[!--coloro:#3366FF--][span style="color:#3366FF"][!--/coloro--]Time is the invention of man to gauge what his achievements have been before he fades to dust.[!--colorc--][/span][!--/colorc--]

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users