|
This week we are going to Create a table for your Database, load it with data and access the data through a php script.
O.K., now to the assignment: 1. A database has already be created for you. You need to create a table inside the database.
You can access your database, through your browser, using this link to
"phpMyAdmin".
You will need to use a "user_name" and "password" to access the MySQL database. Your username is the same as your login username
and I will give out your MySQL password in class.
2. Now that you have created a phone table, you will need to populate it
with data.
Create a text file, on your computer, one that contains 5 or more records.
Mine looks like this "phoneData.txt".
Don't use my data values, make your own. Don't use real phone
numbers, as we will not be protecting this data. Also, make sure to leave
one blank line at the bottom (the last line). Take note of the
semi-colon ";" which separates each field.
3. Next I want you to add a file, "phone.php" to your other web-pages. You will need to modify the file with your own "username" and "password".
Here is what my file looks like
(phone.php).
This page should have a link from your web experiments page. The linked
page will act as the turn-in for this assignment.
|