guestbook-PHP 请问 Notice: Undefined variable
程序员文章站
2024-01-11 13:45:58
...
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 "对不起,忙碌....能重新再试一遍吗?>_
意见反馈
上一篇: sql查询语句优化
下一篇: PHP实现获取域名的方法小结
推荐阅读
-
guestbook-PHP 请问 Notice: Undefined variable
-
Notice: Undefined variable: GOLBALS解决思路
-
输出出现未定义变量提醒:Notice: Undefined variable: str in
-
PHP提示 Notice: Undefined variable
-
PHP提示Notice: Undefined variable的解决办法
-
PHP出现Notice: Undefined variable: _U in 异常请
-
PHP提示 Notice: Undefined variable
-
Notice: Undefined variable: GOLBALS解决思路
-
PHP出现Notice: Undefined variable: _U in 异常请
-
页面出现 Notice: Undefined variable 的解决方法