Ask a question. Check it out.

Source: Internet
Author: User
Ask questions... Let's take a look... I separate the mysql code on the in. php page. The in. php code is as follows: PHPcode & lt ;? Phpdate_default_timezone_set ('prc'); $ sj = date (& quot; Y... Let's take a look...
I separate the mysql code on the in. php page. The in. php code is as follows:
PHP code
  
  


Now you need to input information and save it to the database. the code for luru. php is like this.
PHP code
  
  
  


An error is reported .... Please solve it !!!!

------ Solution --------------------
Please post an error message if there are any mistakes!

If ($ go = 1) // you cannot see where $ go is assigned.
Mysql_select_db ("yang", $ SQL); // since $ go is not assigned a value, this statement will not be executed

If no database is selected, errors will naturally occur.

------ Solution --------------------
Write $ _ GET ['go '].
------ Solution --------------------
Insert into Persons ('name', 'old', 'Add', 'PJ ')....
------ Solution --------------------
....
Mysql_select_db ("yang", $ SQL );
Mysql_query ('set names gbk ');

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.