当前位置: 首页>>代码示例>>PHP>>正文


PHP Reservation::GetCustomerID方法代码示例

本文整理汇总了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>";
开发者ID:phoenixtwister,项目名称:WestViewPensionne,代码行数:31,代码来源:Payment.php

示例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'];
开发者ID:phoenixtwister,项目名称:WestViewPensionne,代码行数:31,代码来源:History.php


注:本文中的Reservation::GetCustomerID方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。