Already rechecked with admin. parts INSERT fulfills, the problem in the front:
case 'booking': $a = $_POST["hotelid"]." ".$_POST["roomid"]." ".$_POST["dtarrive"]." ".$_POST["dtdepart"]." ".$_POST["price"]." ".$_POST["email"]; echo $a; bookingCreate($_POST["hotelid"],$_POST["roomid"],$_POST["dtarrive"],$_POST["dtdepart"],$_POST["price"],$_POST["email"]); I check echo comes, and in common it is not fulfilled, prompt what I miss ???
function bookingCreate($hotelid, $roomid, $dtarrive, $dtdepart, $price, $email) { $cn = dbConnect(); $timearrive = strtotime($dtarrive); $timedepart = strtotime($dtdepart); $newformatarrive = date('Ym-d',$timearrive); $newformatdepart = date('Ym-d',$timedepart); mysql_query("INSERT INTO tbooking(hotelid, roomid, dtarrive, dtdepart, userid, bookingcode, price, status, email) VALUES (".$hotelid.",".$roomid.",'".$newformatarrive."', '".$newformatdepart."','0', UUID(), ".$price.", '1', '".$email."')"); mysql_close($cn); }
$sql = "INSERT INTO tbooking(hotelid, roomid, dtarrive, dtdepart, userid, bookingcode, price, status, email) VALUES (".$hotelid.",".$roomid.",'".$newformatarrive."', '".$newformatdepart."','0', UUID(), ".$price.", '1', '".$email."')"type this, and check phpmyadmin.echo $sql; die();- L. Vadimcommon? When errors usually have logs .... you looked at them? - Alexey Shimanskyfunction bookingInsert($hotelid, $roomid, $dtarrive, $dtdepart, $userid, $price, $status, $email){ $cn = dbConnect(); $timearrive = strtotime($dtarrive); $timedepart = strtotime($dtdepart); $newformatarrive = date('Ymd',$timearrive); $newformatdepart = date('Ymd',$timedepart); mysql_query("INSERT INTO tbooking(hotelid, roomid, dtarrive, dtdepart, userid, bookingcode, price, status, email) VALUES (".$hotelid.",".$roomid.",'".$newformatarrive."', '".$newformatdepart."',".$userid.", UUID(), ".$price.",".$status.",'".$email."')"); mysql_close($cn);This is admin, it works - Denxxx'); delete from tbooking; #as anemailxxx'); delete from tbooking; #xxx'); delete from tbooking; #xxx'); delete from tbooking; #- teran