Thursday, 25 October 2007

PHP and MySql

Today in class we created a simple database using XAMPP and MySql:


To display information from the table on web browser we used html code with php embedded in it. Using our memory sticks as a web server and the URL http://localhost/ we were able to display the information we wanted displayed.

Web Browser



We selected to display the products in bullet point form from our database.

Code



As you can see this looks like an ordinary html document but if you notice is also has <?php.....?>. This shows php is being used.

No comments: