當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Reservation::setComments方法代碼示例

本文整理匯總了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";
}
開發者ID:Ukesh2010,項目名稱:aila,代碼行數:31,代碼來源:process_add_reservation.php


注:本文中的Reservation::setComments方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。