本文整理汇总了PHP中DBAdapter::reserve_add方法的典型用法代码示例。如果您正苦于以下问题:PHP DBAdapter::reserve_add方法的具体用法?PHP DBAdapter::reserve_add怎么用?PHP DBAdapter::reserve_add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DBAdapter
的用法示例。
在下文中一共展示了DBAdapter::reserve_add方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: date
break;
case 4:
$tag4 = 1;
//日帰り
break;
case 5:
$tag5 = 1;
//宿泊
break;
case 6:
$tag6 = 1;
//原付可
break;
case 7:
$tag7 = 1;
//中型以上
break;
case 8:
$tag8 = 1;
//大型限定
break;
}
}
// $number = $_POST['number'];
$create = date("Y-m-d");
require_once "DBAdapter.class.php";
$c = new DBAdapter();
$c->reserve_add($title, $user_id, $text, $date1, $date2, $tag1, $tag2, $tag3, $tag4, $tag5, $tag6, $tag7, $tag8, $create);
} else {
header("Location: sign_up_ok.php");
}
示例2: date
<?php
/**
* Created by PhpStorm.
* User: Akihiro
* Date: 16/02/01
* Time: 23:31
*/
//変数初期化モジュール
require 'module/module_initialization.php';
$title = '東京旅行';
$lat = '39.12';
$lon = '135.12';
$date = date("Y-m-d");
$tag1 = 0;
$tag2 = 1;
$tag3 = 1;
$tag4 = 0;
$tag5 = 1;
$tag6 = 0;
$tag7 = 1;
$tag8 = 1;
$min = 1;
$max = 10;
for ($i = 0; $i < 10; $i++) {
require_once "DBAdapter.class.php";
$c = new DBAdapter();
$c->reserve_add($title . $i, $lat, $lon, $date, $tag1, $tag2, $tag3, $tag4, $tag5, $tag6, $tag7, $tag8, $min, $max);
}
header("Location: sign_up_ok.php");