-
Notifications
You must be signed in to change notification settings - Fork 0
/
bask_addInfoProcess.php
36 lines (32 loc) · 1.08 KB
/
bask_addInfoProcess.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<html>
<head>
<meta http-equiv="content-type"content="text/html;charset=utf-8"/>
</head>
<?php
require_once 'sqlTool.class.php';
$opt=$_REQUEST['flag'];
$title=$_POST['title'];
$info=$_POST['info'];
$sort=$_POST['sort'];
$link=$_POST['link'];
$mysql=new SqlTool();
if($opt=="race"){
$sql="insert into bask_race values(null,'zh',null,'$title','$info')";
$mysql->dml($sql);
}elseif ($opt=="equip"){
$sql="insert into bask_equip values(null,'zh',null,'$sort','$link','$title','$info')";
$mysql->dml($sql);
}elseif ($opt=="local"){
$sql="insert into bask_local values(null,'zh',null,'$title','$info')";
$mysql->dml($sql);
}elseif ($opt=="exp"){
$sql="insert into bask_exp values(null,'zh',null,'$title','$info')";
$mysql->dml($sql);
}
/* header('Location:ok.php?index=1');
exit(); */
echo"发帖成功<br/>";
echo"<a href='basketball.php'>返回篮球首页</a>";
echo"<a href='index.php'>返回首页</a>";
?>
</html>