$date= date("d/m/Y");
$con = mysqli_connect("localhost", "centralhostmyanm_sonetine","7#Wdr2@1","centralhostmyanm_somnew");
$con->set_charset('utf8');
if($con === false)
{
die("ERROR: Could not connect. " . mysqli_connect_error());
}
$sql="INSERT INTO Order_data (Date,Phone,Address,Order_Item,Total, Payment,Status_Choose)
VALUES('$date','$_POST[Phone]','$_POST[Address]','$_POST[Order]','$_POST[tototo]','MSP','Checkout')";
if ($con->query($sql) === TRUE) {
echo "New record created successfully";
} else {
echo "Error: " . $sql . "
" . $con->error;
}
$con->close();