本文整理匯總了PHP中Reservation::setComments方法的典型用法代碼示例。如果您正苦於以下問題:PHP Reservation::setComments方法的具體用法?PHP Reservation::setComments怎麽用?PHP Reservation::setComments使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Reservation
的用法示例。
在下文中一共展示了Reservation::setComments方法的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";
}