Guestbook-PHP: Notice: Undefinedvariable

Source: Internet
Author: User
Notice: Undefinedvariable: rsinhomesujataPublicguestbook4edit. phponline44 (48, 52, 56) Row 44: & quot; where is the problem? Edit. php: & quot;]; $ querymysql_query ($ SQL); $ rsmysql_fetch guestbookphp

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

 

Where is the problem?

Edit. php:

 
          
       Edit        
   

Admin. php:

Administrator background
          
       Administrator background      
       
   

Index. php:

Include "conn. php"; // connect to the database file 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 (" You have received your message, we will speed up the improvement. Thank you for your suggestion!
"); Echo (" 5 seconds later, it will automatically jump to the home page. if not, you can directly click this connection "); header (" refresh: 5; url = 'index. php '");} else {echo" Sorry, busy .... can I try again?> _ <". Mysql_error (); header (" refresh: 5; url = 'index. php' ") ;}}?> Feedback

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.