当前位置: 首页>>代码示例>>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;未经允许,请勿转载。