Posts: 2,337
Name: Keith Marshall
Location: West Hartford, CT
|
It seems like your going through phpMyAdmin which is a handy tool for interfacing MySQL. I'll explain briefly of what each type is:
Field: This is the field name of your selected table
Type: This sets the type of data to be stored in this column. For standard text, you want VARCHAR, and for an id number, you want INT
Length/Values: This sets the maximum number of Alpha / Numeric charactures to allow (VARCHAR cannot hold more than 255 chars)
Collation: You can leave this set to the default, or change to utf-8
Attributes: Chances are you wont need this until you get more advanced
Null: Null will allow the field to be empty upon insert, Not null will require a value
Default: This gives the default value to a field that is not null and that does not pass data upon insertion (example the default value for varchar column for a name field could be 'Not Available')
Extra: Set to auto increment if its the primary id field
Index (the four small images): You can leave set to default except for the primary key index (the field that is supposed to be the id)
Everything else: You can leave set to default
Do a Google search for PHP MySQL Tutorials to find some good info on how to make it all work together. Thats how I learned. Good luck!
__________________
<mgraphic /> - I don't have a solution but I admire the problem.
|