Create essentially the same website as you did in JavaScript, only this time you are to use PHP to generate the page content. You just have to populate a MySQL database with your data, and add your PHP code.

http://www.apachefriends.org/en/xampp.html

 

In this assignment, you are to create essentially the same website as you did in JavaScript, only this time you are to use PHP to generate the page content.  You just have to populate a MySQL database with your data, and add your PHP code.  You should find it reachable from a browser on your host machine (or any other machine on your local network).

To get you through the initial details and save you some of the work, I am giving you a PHP file that already does much of the work. You have to make it work with your data, maybe improve the appearance, and add the code needed to keep score.  (That part is enough of a challenge as it is, so the rest is pretty much given.)  If you are adept at PHP you may change anything you wish.

I have recorded the classroom presentations on everything you need for this assignment setting up the MySQL database using XAMPP, and running the PHP code.  You will find these videos on my website.

Here is the assignment and the initial PHP code.

Use the test.php to test the ability to run PHP from your browser (http://[the vm’s ip address]/[your subdirectory of html]/test.php)

Use the dbtest.php to test the ability to connect php to mysql.  FIrst edit it to have your account into. Use the showtables2.php to test access to your data. Edit the file with your account table info. Then request it from a web browser on the host machine. It should produce a table with your data.

Make the same edits in the cargame.php file and perhaps rename it. Then request it from your brower.

Type of paper Academic level Subject area
Number of pages Paper urgency Cost per page:
 Total: