Click to See Complete Forum and Search --> : Please Please Help


oo7ml
01-16-2007, 07:59 AM
I am just creating my first table in mySQL through phpMyAdmin

I am unsure of the correct TYPE of certain and LENGHT VALUES for two fields

dob - date of birth ( and what is the best way to create this in a form - should i use three different combo boxes for date - month - year OR is there a better way

photo - which is a photo of a new user (this photo would be straight form a digital camera and would not be cropped to a smaller size)

thanks for your help

chazzy
01-16-2007, 08:13 AM
in general, actual files (like pictures) are stored on the file system, and you store in the database where the file is located. so a varchar(255) should be enough.

any dates should be stored in the database as a date/time type.

oo7ml
01-16-2007, 08:19 AM
Ok thanks but what should the Length/Values of the: dob - DATETIME - ?

Thanks for your help

chazzy
01-16-2007, 10:28 AM
datetime's don't need a length.