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 ');