irish87
07-21-2006, 07:14 PM
I am in the process of building a fantasy f1 website and m relatively new to this sql business. Below is an example of a problem I have along with a couple of the tables in my database.
DriverTbl
|DriverID|DriverName|DriverCost|
AccountTbl
|AccountID|Driver1|Driver2| etc...etc...
My problem is simply this...
I was wondering that when creating the db should I set the data type of |Driver1| and |Driver2| etc.. to enum and then enter all the different drivers that the end user can choose from in the Length/Values area? or, should I just set the data type to text and then using the perl script and entering a MySQL query/queries, create a drop down list which only uses the field |DriverName| from the DriverTbl? so that when the user goes to select their Drivers they will do so using a drop down list on the webpage.
Irish87.
DriverTbl
|DriverID|DriverName|DriverCost|
AccountTbl
|AccountID|Driver1|Driver2| etc...etc...
My problem is simply this...
I was wondering that when creating the db should I set the data type of |Driver1| and |Driver2| etc.. to enum and then enter all the different drivers that the end user can choose from in the Length/Values area? or, should I just set the data type to text and then using the perl script and entering a MySQL query/queries, create a drop down list which only uses the field |DriverName| from the DriverTbl? so that when the user goes to select their Drivers they will do so using a drop down list on the webpage.
Irish87.