php实现留言板功能(会话控制)(2)

<?php session_start(); $UserName = $_SESSION["UserName"]; $jsr = $_POST["jsr"]; $nr = $_POST["neirong"]; $Times = date("Y-m-d H:i:s"); require"DBDA.class.php"; $db = new DBDA(); $sql = "insert into liuyan values('','{$UserName}','{$jsr}','{$Times}','{$nr}')"; $db->query($sql,0); header("location:fabu.php");

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/51620c7adf3bd3e39bee725b96bc33de.html