Lab 5 - Insert and Call Data
Lab 5 - Insert and Call Data
BBU 40203
PENGATURCARAAN WEB
TUGASAN AMALI
TAJUK : INSERT AND CALL DATA
NAMA NO.MATRIK
OBJECTIVES : After performing this experiment, the student will be able to:
i) Create a database.
ii) Make a connection with database.
iii) Insert and call data.
EQUIPMENT LIST :
1. Computer
2. Notepad Software
3. Adobe Dreamweaver
PROCEDURE :
1. Make sure you have your connectivity set up. (See the blog links above.)
2. You must have the connectivity done and the site defined in Dreamweaver.
3. Open the XAMPP console and start MySQL and Apache.
4. Create a new PHP page in the Dreamweaver site you have defined. Save it with no
spaces in the name.
5. Click on Insert > Data Objects > Insert Record > Record Insertion Form Wizard.
6. Choose your Connection from the dropdown.
7. Choose the table that you want to insert the data into.
8. In the “After inserting, go to:” text field, type in the name of the page that will open
automatically after the end user submits the form data. For example, it could go to a
page that displays “Thanks for signing up for our Newsletter.” It can be a simple page
named “thankyou.htm”.
9. Click OK.
10. Save the page, run it, and insert some text into the fields.
11. Click the Insert Record button.
12. Hopefully, you will now see your “thankyou.htm” page. Remember, you have to
create the “ThankYou” page!
Now, let’s create a PHP page to display the data you just entered.