本文整理汇总了PHP中menu::getid方法的典型用法代码示例。如果您正苦于以下问题:PHP menu::getid方法的具体用法?PHP menu::getid怎么用?PHP menu::getid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类menu
的用法示例。
在下文中一共展示了menu::getid方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: menu
<!DOCTYPE html>
<html>
<body background="coffee.jpg">
<style>
div{
border:1px solid white;
border-radius:20px;
padding:20px;
}
</style>
<?php
ob_start();
$i = 1;
require 'menu.php';
$menu_obj = new menu();
$menu_obj->getid(4);
//$rest_id = 4;
$arr = array('coffee', 'tea', 'frappe', 'lemonade', 'sundae', 'smoothie', 'eats');
include 'restaurant.php';
$r_obj = new restaurant();
$r_obj->display_menu($arr, 7, 4);
/*$host = "localhost";
$username="root";
$password="";
$database = "hotels";
$con = new mysqli($host,$username,$password,$database);
if($con -> connect_error)
{
trigger_error('DB connection failed:'.$con -> connect_error,E_USER_ERROR);
}
示例2: menu
border: 1px solid #0000ff;
border-radius:20px;
padding:20px;
background-color:white;
}
body{
opacity:0.7;
}
</style>
<?php
ob_start();
$i = 1;
require 'menu.php';
$menu_obj = new menu();
$menu_obj->getid(5);
$arr = array('Soup', 'Appetizers- Sea Food', 'Rice and Noodles', 'Desserts', 'Beer');
include 'restaurant.php';
$r_obj = new restaurant();
$r_obj->display_menu($arr, 5, 5);
/*$host = "localhost";
$username="root";
$password="";
$database = "hotels";
$con = new mysqli($host,$username,$password,$database);
if($con -> connect_error)
{
trigger_error('DB connection failed:'.$con -> connect_error,E_USER_ERROR);
}
else
示例3: menu
div{
border: 1px solid #0000ff;
border-radius:20px;
padding:20px;
background-color:white;
opacity:0.5;
}
body{
}
</style>
<?php
ob_start();
$i = 1;
require 'menu.php';
$menu_obj = new menu();
$menu_obj->getid(3);
$arr = array('pizza', 'salad');
include 'restaurant.php';
$r_obj = new restaurant();
$r_obj->display_menu($arr, 2, 3);
?>
<br><br>
<input type="image" src="button.jpe" name='sub'>
<?php
if (isset($_POST['sub_x'], $_POST['sub_y'])) {
//require 'menu.php';
//$menu_obj = new menu();
$menu_obj->select_item();
//include 'order.php';
//disp_order();
}
示例4: menu
border: 1px solid #0000ff;
border-radius:20px;
padding:20px;
background-color:white;
}
body{
opacity:0.7;
}
</style>
<?php
ob_start();
$i = 1;
require 'menu.php';
$menu_obj = new menu();
$menu_obj->getid(2);
$arr = array('Taco', 'Nachos', 'Burrito', 'Quesadillas', 'Desserts and Sides');
include 'restaurant.php';
$r_obj = new restaurant();
$r_obj->display_menu($arr, 5, 2);
?>
<br><br>
<input type="image" src="button.jpe" name='sub'>
<?php
if (isset($_POST['sub_x'], $_POST['sub_y'])) {
//require 'menu.php';
//$menu_obj = new menu();
$menu_obj->select_item();
//include 'order.php';
//disp_order();
}
示例5: menu
<body background="fish1.jpg">
<style>
div{
background-color: #DFFFBF;
opacity: 0.6;
border: 1px solid #0000ff;
border-radius:20px;
padding:20px;
}
</style>
<?php
ob_start();
$i = 1;
require 'menu.php';
$menu_obj = new menu();
$menu_obj->getid(6);
//$rest_id = 6;
$arr = array('Salads', 'Soups', 'Appetizers', 'Main Course', 'Indian Breads', 'Desserts');
include 'restaurant.php';
$r_obj = new restaurant();
$r_obj->display_menu($arr, 6, 6);
/*
$host = "localhost";
$username="root";
$password="";
$database = "hotels";
$con = new mysqli($host,$username,$password,$database);
if($con -> connect_error)
{
trigger_error('DB connection failed:'.$con -> connect_error,E_USER_ERROR);
示例6: menu
border-radius:20px;
padding:20px;
opacity:0.6;
background-color:white;
}
#colour{
color:black;
}
</style>
<?php
ob_start();
$i = 1;
require 'menu.php';
$menu_obj = new menu();
$menu_obj->getid(1);
//$rest_id = 1;
$arr = array('south indian', 'pav bhaji', 'sandwich', 'pizza', 'punjabi', 'roti', 'rice');
include 'restaurant.php';
$r_obj = new restaurant();
$r_obj->display_menu($arr, 7, 1);
/*
$host = "localhost";
$username="root";
$password="";
$database = "hotels";
$con = new mysqli($host,$username,$password,$database);
if($con -> connect_error)
{
trigger_error('DB connection failed:'.$con -> connect_error,E_USER_ERROR);