Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose that you have the following to answer below questions: Q1) 1-write PHP code that reads names of all items in the food table, display

Suppose that you have the following to answer below questions:

image text in transcribed

Q1)

1-write PHP code that reads names of all items in the food table, display names in HTML list.

2- After user select an item from the list you created in Q1, now use prepared statement and binding variables that given the item name, returns the quantity and display numbers in HTML dropdown list starting from 1 to quantity of that item, for example if quantity is 5, the drop down list shows 1, 2, 3, 4, 5

Two sections for the same question, please solve the two sections

1. A table in a database called food: Item_ID Item_Name Item_Price Item_Quantity 2. A table in a database called order: Item ID Quantity 3. $con= new PDO("mysql:host=localhost; dbname=test, "root","")

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Handbook Of Relational Database Design

Authors: Candace C. Fleming, Barbara Von Halle

1st Edition

0201114348, 978-0201114348

More Books

Students also viewed these Databases questions