You are on page 1of 1

LAB

3B. Create Database and Tables



Create a new file, createDB.php, place this file in the root directory

1. Write PHP code in above file to
a. Create a new database with the name myDB
b. Create new tables in myDB, with the names products and users such as

productID product_name Price userID name username password



Insert a few rows with like-real data into tables, using php code

2. Get back to you website layout in LAB 3A, when you click on the product-category,
the list of products appears in body section of the web page.

You might also like