📄 add_d.php
字号:
<?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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -