add_d.php
来自「中国象棋online v2008 build 0313 web版的线上棋牌」· PHP 代码 · 共 17 行
PHP
17 行
<?php
if($_POST[name] == '')
{
setcookie(message, 房间名称不能为空!);
header("location:index.php");
exit;
}
include "./functions.php";
include "./dbconnect.php";
$query = mysql_query("insert into `room` (`ID`,`name`,`chess`,`time`) values (NULL,'".str_replace("<", "<", str_replace(">", ">", $_POST[name]))."','$c','".time()."')");
$ID = mysql_insert_id();
if($ID)
{
header("location:join.php?roomid=".$ID);
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?