Professional Documents
Culture Documents
Practical 1 (7Mks)
Write a PHP Script that compute the total price of a given item in the record table. The record
will be a one dimension table variable name $item_tab. Data of that $item_tab will be set
manually in the script. And the result will be given with the item reference, name, unique
price, quantity and total price.
Example:
If the variable $item_table has the value corresponding to Item line No 3 in our record table,
the result will be as follow on the web Page:
Item_Ref Item_Names Item_Price Qty Total
OH015 Iron Sponge 100 5 500
Practical 2 (5 Mks)
Create a database corresponding to the record table given up. Data base name should be
store_DB and the record table name is item_tab.
NB: Write the creation SQL script for the table item_tab in a file same CA Script.sql (but
creation of the database can done using the DBMS PhpMyAdmin)
Pratical 3 (8 Mks)
1- Write a PHP Script to insert and item line in the item_tab table in the score_tab
database (4Mks)
2- Write a PHP script that read all the item in item_tab table and give the following
result: (4Mks)