HTML + Css With PHP and Phpmyadmin Programming
HTML + Css With PHP and Phpmyadmin Programming
OBJECTIVE: at the end of the semester, the students will be able to:
1. Learn the basic of HTML and Cascading style sheets (CSS)
2. Learn PHP programming with database using PHPmyadmin.
3. Create dynamic web pages using the four applications stated above.
4. Learn the basic use of Standard Query language (SQL) in programming.
5. Learn how dynamic web pages response using links, pictures, icons, and text boxes.
Steps in creating your first program in php.
1. Browse to my computer and click Local disk C:\ then click on xammp folder
3. Create your “folder” with your Last name (e.g Tabien), by clicking the new folder tab
above. (see images below) it will create a new folder and while it is highlighted type
your last name then press enter key.
<?php
echo "Hello World!";
?>
</body>
</html>
Make sure that you will save it to your folder you have just created inside the htdocs folder and
don’t forget to include the .php as extension in your file name, see above picture the filename
use is sample with .php, once done click save button.
6. To run the created program, make sure that you have already connect the xammp control panel
and make sure that there is no error on connection. To check if there is no error, see image
below encircle in red, apache and mysql are detected running.
next on our step by step is to create a sample database in phpmyadmin and later we will
going to connect it in your php program and display the contents of your database created. To
do that, open a new tab in your browser and just type localhost.
8. On the right side of your screen, you will see the phpMyadmin link, click on it and you will see
the image below.
10. On the red arrow, write the fieldnames (e.g IDnumber), click on type green arrow if the
fieldname is text or integer(INT) normally if number the default of course is INT, if text or Last
name, First name select VARCHAR. On maroon arrow write the length values(e.g IDnumber
=”4”, Lastname = “25”).
11. After all the fieldnames is correctly encoded, click save button on the lower left of your screen.
12. To add data or record on your created table click INSERT tab.
13. Use the right side textboxes to add records and click GO once done, see image below
15. Once done, click the browse tab to see the added records.