![]() |
||||||||||||||||||||||
|
You've just made your first database, right? In order to make a table, you need to log-into CPanel again (assuming you logged out)
and go back to the MySQL Databases page where you made the username and database. At the very bottom of that page, find a link that says phpMyAdmin. This is where we make the tables and manage them.
There should be a drop-down menu in the left-hand corner, find your newly made database here:
As you can see, when you click on it a new page comes up and says No tables found in database.
But towards the right side, it also says something else.
Type in the desired name of your table (this is where your content will go, such as layouts, pngs, etc.) Calculate the number of fields you want, but make sure you have enough to make one with the name ID.
I have three fields for my sample:
It is also important to add a field which all your data will have the same so that you can sort them by that later.
For instance, if yoyu want to have a layouts database and wish to sort them by Divs, type in Divs as the type. (although you
don't have to have the word type). Or for something else, its category name. Why else do you think all my Transparent PNGs say
Type: PNG?
Back on track, now that you've made the table a new window should come up. Take note as to what my ID field has to every last detail. Yours should look the same as well. After your ID field, all the rest of the fields have to the same inputs as my anime and type fields. (Type as VARCHAR, lengh with 255)
Adding data:
Type in all the information you need, but leave the ID field blank! You will also notice there are two identical boxes you can
enter your information. Make sure the Ignore is checked and leave the second box blank.
Explanations: You can now go on to the third part of this tutorial to see how you can display your data! |
|
||||||||||||||||||||