本文整理汇总了PHP中game::create_table方法的典型用法代码示例。如果您正苦于以下问题:PHP game::create_table方法的具体用法?PHP game::create_table怎么用?PHP game::create_table使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类game
的用法示例。
在下文中一共展示了game::create_table方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUpBeforeClass
public static function setUpBeforeClass()
{
user::create_table();
session::create_table();
pending_game::create_table();
game::create_table();
}
示例2: setUpBeforeClass
public static function setUpBeforeClass()
{
user::create_table();
game::create_table();
message::create_table();
}
示例3:
<?php
include_once './include/table_user.php';
include_once './include/table_game.php';
include_once './include/table_message.php';
include_once './include/table_log.php';
include_once './include/table_pending_game.php';
include_once './include/table_session.php';
include_once './include/table_move.php';
//create the tables:
$successful = True;
$successful = user::create_table() && $successful;
if (!$successful) {
echo "Failed to create tables";
}
$successful = game::create_table() && $successful;
$successful = message::create_table() && $successful;
$successful = log::create_table() && $successful;
$successful = pending_game::create_table() && $successful;
$successful = session::create_table() && $successful;
$successful = move::create_table() && $successful;
if (!$successful) {
echo "Failed to create tables";
} else {
echo "OK";
}