请问问题出在哪里? edit.php: 编辑 用户名: " /> 邮箱: " />请"/>
PHP头条
热点:

guestbook-PHP请问Notice:Undefinedvariable


guestbookphp

Notice: Undefined variable: rs in /home/sujata/Public/guestbook4/edit.php on line 44 (48,52,56)
44行:

 

请问问题出在哪里?

edit.php:

            编辑        
用户名:
邮箱: 请输入你的邮箱,方便我们及时取得联系
内容:
反馈网址:

admin.php:

 

管理员后台

管理员后台
用户名:   ">编辑   ">删除
留言时间:
邮件:
内容:
反馈网址:

index.php:

include "conn.php"; //连接数据库文件if (!empty($_POST['sub'])) {    $username = $_POST['username'];    $email = $_POST['email'];    $content = $_POST['content'];    $refer_url = $_POST['refer_url'];    $sql = "insert into `user` (`id`,`username`,`dates`,`email`,`content`,`refer_url`) VALUES (null,'$username',now(),'$email','$content','$refer_url')";    $query = mysql_query($sql);    if ($query) {        echo ("已经收到你的信息啦,我们会加快步伐改进的。谢谢你的建议!
"); echo ("5秒后将自动跳转到首页,如果没有跳转你可以直接点击此连接"); header("refresh:5;url='index.php'"); } else { echo "对不起,忙碌....能重新再试一遍吗?>_< " . mysql_error(); header("refresh:5;url='index.php'"); }}?> 意见反馈
用户名:
邮箱: 请输入你的邮箱,方便我们及时取得联系
内容:
反馈网址:

www.phpzy.comtrue/php/1309.htmlTechArticleguestbook-PHP请问Notice:Undefinedvariable guestbookphp Notice: Undefined variable: rs in /home/sujata/Public/guestbook4/edit.php on line 44 (48,52,56) 44行: " /> 请问问题出在哪里? edit.php: 编辑 用户名: " /> 邮箱: " />请...

相关文章

相关频道:

PHP之友评论

今天推荐