getMessage()); die('Could not connect: ' . mysqli_connect_error()); } $insert = "INSERT INTO cust_order (order_id,firstname,lastname,address,flavor,topping,creditCard,cust_id) VALUES(0,'$firstname','$lastname','$address', '$flavor', '$topping', '$creditCard', 1)"; //print($insert); #for debugging $result = mysqli_query($connect, $insert); #issue the query if (! $result) die('Could not execute insert: ' . mysqli_error($connect)); mysqli_close($connect); #close connection print "Order Processed Successfully!!! \n"; //============================================================================= ?>