guestbook-php Excuse me notice:undefined variable

Source: Internet
Author: User
Keywords Guestbook PHP
guestbookphp

notice:undefined Variable:rs in/home/sujata/public/guestbook4/edit.php on line 44 (48,52,56)
44 Lines:

Where is the problem, please?

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'"); }}?> 意见反馈
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.