本文整理汇总了PHP中Reservation::GetCustomerID方法的典型用法代码示例。如果您正苦于以下问题:PHP Reservation::GetCustomerID方法的具体用法?PHP Reservation::GetCustomerID怎么用?PHP Reservation::GetCustomerID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Reservation
的用法示例。
在下文中一共展示了Reservation::GetCustomerID方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: session_start
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<?php
session_start();
include "../Class/Reservation.php";
include "../../connection.php";
$confirmation = $_SESSION['Confirmation'];
if (isset($_SESSION['Confirmation']) || isset($_SESSION['Customerid'])) {
$sql = "select tblreservation.Confirmation,tblusers.FirstName,tblreservation.Customer_ID,tblusers.LastName, tblusers.Contact,tblusers.Email,\n tblrooms.Room_ID,tblrooms.Rate,tblreservation.CategoryName,tblreservation.No_Adult,tblreservation.No_Child,\n tblreservation.Arrival,tblreservation.Departure,tblreservation.Payable,tblreservation.NumberofDay\n FROM tblreservation INNER JOIN tblusers\n ON tblreservation.Customer_ID=tblusers.Customer_ID\n INNER JOIN tblrooms ON tblrooms.Room_ID=tblreservation.Room_ID\n WHERE tblreservation.Confirmation= '" . $_SESSION['Confirmation'] . "' OR tblusers.Customer_ID= '" . $_SESSION['Confirmation'] . "'";
if (!Reservation::GetCustomerID($_SESSION['Customerid'])) {
echo "No found Reservation,Please Reserve before View your Reservation Detail ";
} else {
$result = mysqli_query($conn, $sql) or die(mysqli_error($conn));
while ($row = mysqli_fetch_assoc($result)) {
echo "<form action='' method='POST'>";
echo "<div class='container' style='margin-top:65px;'><div class='row><div class='col-lg-12'>'";
echo "<h1 class='page-header'>History Reservation Detail</h1></div>";
echo "Confirmation code:" . $row['Confirmation'];
echo "</br>";
echo "FirstName :" . $row['FirstName'];
echo "</br>";
echo "LastName :" . $row['LastName'];
echo "</br>";
echo "Contact :" . $row['Contact'];
echo "</br>";
示例2: session_start
<?php
include "../connection.php";
include "../Class/Reservation.php";
session_start();
if (isset($_SESSION['Customerid'])) {
$Customerid = $_SESSION['Customerid'];
$sql = "select tblreservation.Confirmation,tblcustomers.FirstName, tblcustomers.LastName, tblcustomers.Contact,tblcustomers.Email,\n tblrooms.Room_ID,tblreservation.CategoryName,\n tblreservation.Arrival,tblreservation.Departure,tblreservation.Payable,tblreservation.NumberofDay\n FROM tblreservation INNER JOIN tblcustomers\n ON tblreservation.Customer_ID=tblcustomers.Customer_ID\n INNER JOIN tblrooms ON tblrooms.Room_ID=tblreservation.Room_ID\n WHERE tblcustomers.Customer_ID= '" . $Customerid . "'";
if (!Reservation::GetCustomerID($Customerid)) {
echo "No found Reservation,Please Reserve before View your Reservation Detail ";
}
$result = mysqli_query($conn, $sql) or die(mysqli_error($conn));
while ($row = mysqli_fetch_array($result)) {
echo "<h1>History Reservation Detail</h1>";
echo "Confirmation code:" . $row['Confirmation'];
echo "</br>";
echo "FirstName :" . $row['FirstName'];
echo "</br>";
echo "LastName :" . $row['LastName'];
echo "</br>";
echo "Contact :" . $row['Contact'];
echo "</br>";
echo "Email :" . $row['Email'];
echo "</br>";
echo "Room # :" . $row['Room_ID'];
echo "</br>";
echo "Arrival :" . $row['Arrival'];
echo "</br>";
echo "Departure :" . $row['Departure'];
echo "</br>";
echo "NumberofDays :" . $row['NumberofDay'];