php留言板项目,add页面主要代码如下
$sql="insert into ".TABLE_PREFIX."guestbook(username,email,content,userip,systime,ifshow,ifqqh)values('".$username."','".$email."','".$content."','".$userip."','".$systime."',".$ifshow.",".$ifqqh.")";
//echo $sql;
if(($db->insert($sql))>0){
$_SESSION['timer']=time();
echo "恭喜您留言成功,正在返回请稍候……<br><a href=index.php>您可以点此手动返回</a>";
echo "<meta http-equiv=\"refresh\" content=\"3; url=index.php\">";
}else{
echo "留言失败!信息中可能含有敏感字符或不利于程序运行的特殊字符……";
echo "<meta http-equiv=\"refresh\" content=\"5; url=".$_SERVER['PHP_SELF']."\">";
å¨ä½ ç代ç æä¸æ¹å ä¸è¿ä¸å¥
ini_set('display_errors','on');
让ä»æ¥éå°±ç¥éé®é¢å¨åªäº
ini_set('display_errors','on');
让ä»æ¥éå°±ç¥éé®é¢å¨åªäº
温馨提示:答案为网友推荐,仅供参考