本文整理汇总了PHP中Reservation::setDateOfArrival方法的典型用法代码示例。如果您正苦于以下问题:PHP Reservation::setDateOfArrival方法的具体用法?PHP Reservation::setDateOfArrival怎么用?PHP Reservation::setDateOfArrival使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Reservation
的用法示例。
在下文中一共展示了Reservation::setDateOfArrival方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
//$user_id=mysqli_real_escape_string($adduserobj->conxn,$_POST['user_id']);
$reservationname = mysqli_real_escape_string($adduserobj->conxn, $_POST['reservationname']);
$telephone_home = mysqli_real_escape_string($adduserobj->conxn, $_POST['telephone_home']);
$address = mysqli_real_escape_string($adduserobj->conxn, $_POST['address']);
$telephone_business = mysqli_real_escape_string($adduserobj->conxn, $_POST['telephone_business']);
$no_of_people = mysqli_real_escape_string($adduserobj->conxn, $_POST['no_of_people']);
$date_of_arrival = mysqli_real_escape_string($adduserobj->conxn, $_POST['date_of_arrival']);
$email = mysqli_real_escape_string($adduserobj->conxn, $_POST['email']);
$comments = mysqli_real_escape_string($adduserobj->conxn, $_POST['comments']);
//$adduserobj->setUserID($user_id);
$adduserobj->setReservationname($reservationname);
$adduserobj->setTelephoneHome($telephone_home);
$adduserobj->setAddress($address);
$adduserobj->setTelephoneBusiness($telephone_business);
$adduserobj->setNoOfPeople($no_of_people);
$adduserobj->setDateOfArrival($date_of_arrival);
$adduserobj->setEmail($email);
$adduserobj->setComments($comments);
//$adduserobj->setError($er);
//$adduserobj->setMessage($msg);
$flag = $adduserobj->addReservation();
/*echo '<pre>';
print_r ($adduserobj);
echo '</pre>';
exit;*/
if ($flag) {
header('location:../../rms/reservation.php');
$_SESSION['msg'] = $adduserobj->msg = "Thanks, You have reserved sucessfully";
} else {
echo $_SESSION['msg'] = $adduserobj->msg = "Sorry the user has not been added, please try again later";
}