CASE B: PHP and Mysql
I used XAMPP control panel that Apache Web server, PHP, MySQL and phpMyAdmin are all included. The below snapshot is the one which i used.
2.Create a web application called "hellow-world.php"which contains in the body:
Code is:
Output of above code:
3.Create an HTML page with the form
Code:-
4.The code given on study guide is not working.I tried lots.At last i did in this way and it works.
Code:-
Combination of Q.3 and Q.4 output :-
5.b. This is how we can add a record and is part of a file to create called add_record.html
Coding:-
Output:-
5.c the corresponding PHP files is add_record.php used with the post method.
Coding:-
No comments:
Post a Comment