- Before you proceed you should design a database table in PHPMyAdmin
- This table will include "4" fields in a table called "members" those fields are:
- userid
- username
- password
- email
If you would like the SQL txt file to upload into your database via PHPMyAdmin Download here: members.sql - For information on how to upload SQL formatted files into your database click here If you would like to do this manually: Open up PHPMyAdmin and Create a new table called "members" and give it "4" fields then press GO  Name the fields: - "userid" INT 5(length) auto-increment and make it the "Primary Key"
- "username" VARCHAR 12
- "password" VARCHAR 10
- "email" VARCHAR 30
 What is going on here: We are setting the names of the fields that will contain our member's information so that they can login to our site. We can use this same process to insert catalog items for display on our pages as well. That would require a different table with item ids, names, descriptions and image locations etc. What do those attributes mean? VARCHAR means "Variable Characters" - Letters and Numbers up to 255 characters in length. You could use VARCHAR for a small story too. INT means "Integer" or a number, we have also set this field to do "auto-increment" that means when a new record is inserted into the table it will take on a number in succession 1, 2, 3, 4, etc. We also set it as the "Primary Key" Primary Key designates this particular field as the main ID for this record. We can use this Primary Key later on to link to other tables of data. The easiest way to understand this concept is that a customer will have an ID number that can be referenced in a different table for current items this customer has on order. Or shipping methods this customer desires in a different table.  |