connect_errno) { die('Could not connect: ' . mysql_error()); } $con->autocommit(false); $sql="INSERT INTO post (Title, Date_Creation) VALUES ('$title','$date_creation')"; if (!$con->query($sql)) { die('Error: ' . $con->error); } $con->commit(); echo "1 record added"; } ?>
Title: Date_Creation: