<?php session_start(); $uid = $_SESSION["zhang"]; include("../db.class.php"); $db = new db(); $jsr = $_POST["shou"]; $neirong = $_POST["lynr"]; $sj = date("Y-m-d H:i:s"); $sql = "insert into liuyan values('','{$uid}','{$jsr}','{$sj}','{$neirong}',0)"; if($db->Query($sql,0)) { header("location:zym.php"); } else { echo "发布失败!"; }
图:
我用小花的账号给小明发一条留言:
所以 登入小明的帐号
图:
没错,他收到了小花的这条留言