WebEngineeringTheory - Question Paper Format (Final Term Spring-2021)
WebEngineeringTheory - Question Paper Format (Final Term Spring-2021)
Question # 2: Marks[10]
Suppose a client, wants you to develop an online shopping website. You need to create a
database for this purpose using phpMyAdmin(may use another) .
1. Create atleast 4 tables with proper primary keys(should use autoincremented in one
table) 1
2. Show the relationships between tables. 1
3. Create foreign keys according to the relationships (atleadt 2 keys) 2
4. Write the following queries for the database
4.1.Write code to connect to the server to the database. 1
4.2.User wants to view items according to the category he/she selected 2
4.3. The sold items should be updated as sold and the other user can only view the item
but not the price. 3
Note: Also display a relevant message regarding the success or failure of the queries.
Question # 3: Marks[7]
OUTPUT
b) Modify the code and write the following code using a tag that preserve the format. 1
a=5
b=8
print (a*b)
c) Write your name in the middle of the page by using only one tag for this purpose. 1
d) Create a javascript function on anchor tag to print a pop up window message.
(Write any text for the message) 1