Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A https://exam.ptuk.edu.ps/mod/quiz/attempt.php?attempt=120139&cmid=29397&page=3 This course) Question 4 Hot yet Suppose that you have the following to answer below questions: answered Marked out of 10.00 1. A
A https://exam.ptuk.edu.ps/mod/quiz/attempt.php?attempt=120139&cmid=29397&page=3 This course) Question 4 Hot yet Suppose that you have the following to answer below questions: answered Marked out of 10.00 1. A table in a database called food: Item_ID Item_Name Item_Price Item_Quantity Flag question 2. A table in a database called order: Item_ID Quantity 3. Scon= new PDO("mysql:host=localhost; dbname=test", "root", ""); Q1) write PHP code that reads names of all items in the food table, display names in HTML list. Q2) After user select an item from the list you created in 01. now use prepared statement and binding vanables 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 i quantity is 5, the drop down list shows 1. 2. 3. 4. 5 7 B 1 XX 15:12 30/12:26 A TI F5 Fo FE F12 EX pause break 2 3 4 5 6 7 9 0
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started