Question: prepare ( ' INSERT INTO orders ( product _ name, price ) VALUES ( :product _ name, :price ) ' ) ; $stmt - >
prepareINSERT INTO orders productname, price VALUES :productname, :price;
$stmtbindParam:productname', $POSTproductname' ;
$stmtbindParam :price', $POSTprice;
$stmtexecute;
prepareSELECT customerid FROM orders WHERE productid :productid;
$stmtbindParam :productid $GETproductid;
$stmtexecute;
$result $stmt fetch PDO: :FETCHASSOC
what is the output for this code
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
