⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fubusuccess.php

📁 bbs论坛的其中一个模块 发布新贴与回复旧贴
💻 PHP
字号:
<!--
  -- 功能说明:发布新贴
  -- 开发人员:4233302    200427333235 徐琳舒
  -- 创建日期:2005-11-16
  -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>信息发布成功</title>
<style type="text/css">
<!--
.style2 {font-size: 16px}
-->
</style>
</head>
<body>
<span class="style2"><a href="a.php">首页</a></span> <span class="style2"><a href="fabuxintie.php">继续发布</a></span>
<p>&nbsp;</p>
<p>
  <?php

	// 获得form表单中的内容
	$UID = $_POST['UID'];   //用户编号
 	$SID = $_POST['SID'];  //栏目编号
	$InfoSign = $_POST['InfoSign'];     //回复标记0
	$Title = $_POST['Title'];           //标题
	$Content = $_POST['Content'];    //内容
	$InfoTime = $_POST['InfoTime'];     //发布时间
	$USE_IP = $_POST['USE_IP']; 
	//echo "UID =",$USE_IP;
		//echo "UID =",$UID;
		//echo "SID =",$SID;
		//echo "InfoSign =",$InfoSign;
		//echo "Title =",$Title;
		//echo "Content =",$Content;
		//echo "InfoTime =",$InfoTime;
		
	// 数据库链接
	$link = mysql_connect("localhost", "root", "")
        or die("Could not connect: " . mysql_error());
	   
	// 选择操作的数据库
	$result = mysql_select_db("bbs_data")
		or die("Could not select bbs_data database");
	
	// 插入数据的sql语句的组成
	$strSql = "insert into BOARDINFO values('',". $UID ."," . $SID. "," .$InfoSign . ",'".$Title . "','" .$Content . "','" .$InfoTime. "','" .$USE_IP. "','N');";
	$strSql2 = "insert into MESSAGE values('','".$Title . "','" .$Content . "','" .$InfoTime. "','N');";
	//echo $strSql . "<br>";
	//echo $strSql2;
	// 执行sql语句操作
	
	$result = mysql_query($strSql)
		or die("Could not execute SQL query");
	$result2 = mysql_query($strSql2)
		or die("Could not execute SQL query");
	
	// 关闭数据库链接
	mysql_close($link);
	
	// 插入成功提示信息
	$success = "恭喜您,发布信息提交成功!";
	echo $success;
?>
</p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -