I am trying to insert multiple rows at once to my db, I posted a question here the other day see here. Regarding my insert query only insert one row into the db, even if it was
change it like this to separated it with coma.
$_query = "INSERT INTO ord_dets(Order_ID,custmer_ip,Resturant_ID,Resturant_name,City_name,
Product_Id,Product_Name,Product_Price,item_sub)
VALUES ";
$_query_parts = array();
$sep ="";
for($x=0;$xprepare($_query);
echo $_query;
if (!$query_run->execute()) {
$insertError = "There was an error inserting data: " . $query_run->error;
print "affected rows:" . $query_run->affected_rows; //how many records affected?
}
}