Php database modification problems
This is guanli_ OK .php.
Click "submit" and transfer it to guanli_ OK .php. However, if there is no blank space, the modification is successful or failed .. Solutions
Reply to discussion (solution)
An error occurred while writing the SQL string.
$ Insert = mysql_query ("update tb_book set pwd = '$ xpwd', section =' $ detail ', name = '$ section 'Where id =' $ user' AND pwd = 'pwd' ", $ conn );
After the change, I still did not respond ,,,
An error occurred while writing the SQL string.
$ Insert = mysql_query ("update tb_book set pwd = '$ xpwd', section =' $ detail ', name = '$ section 'Where id =' $ user' AND pwd = 'pwd' ", $ conn );
Still not responding ..
Please enable the php error display function
Please enable the php error display function
Enabled, but it is still blank
If (isset ($ _ POST ['submit ']) and $ _ POST ['submit'] = "Submit") {no need to explain it...
If (isset ($ _ POST ['submit ']) and $ _ POST ['submit'] = "Submit") {no need to explain it...
Changed but left blank .,.
If (isset ($ _ POST ['submit ']) and $ _ POST ['submit'] = "Submit") {no need to explain it...
Changed but left blank .,.
You did not enter if
If (isset ($ _ POST ['xiugai']) and $ _ POST ['submit '] = "confirm modification "){
If (isset ($ _ POST ['submit ']) and $ _ POST ['submit'] = "Submit") {no need to explain it...
Changed but left blank .,.You didn't enter if (isset ($ _ POST ['xiugai']) and $ _ POST ['xiugai'] = "confirm modification "){...
Php. ini
Display_errors = On
Restart the web server
Your error is actually caused by conn/conn. php
If your error is displayed
$ Insert = mysql_query ("update tb_book set pwd = '$ xpwd', section =' $ detail ', name = '$ section 'Where id =' $ user' pwd = 'pwd' ", $ conn); // perform the update operation
Echo mysql_error (); // there must be output here, because the SQL command is wrong.
Conn
Error
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
Localhost
06/30/15 13:38:48
Apache/2.2.9 (APMServ) mod_ssl/2.2.9 OpenSSL/0.9.8h PHP/5.2.6
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
Localhost
06/30/15 13:38:48
Apache/2.2.9 (APMServ) mod_ssl/2.2.9 OpenSSL/0.9.8h PHP/5.2.6
You started to say guanli_ OK .php. you are guanl_ OK .php.
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
Localhost
06/30/15 13:38:48
Apache/2.2.9 (APMServ) mod_ssl/2.2.9 OpenSSL/0.9.8h PHP/5.2.6
You started to say guanli_ OK .php. you are guanl_ OK .php.
I changed it and found it to be blank ..
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
Localhost
06/30/15 13:38:48
Apache/2.2.9 (APMServ) mod_ssl/2.2.9 OpenSSL/0.9.8h PHP/5.2.6
You started to say guanli_ OK .php. you are guanl_ OK .php.
No error message
Php. ini
Display_errors = On
Restart the web server
Your error is actually caused by conn/conn. php
If your error is displayed
$ Insert = mysql_query ("update tb_book set pwd = '$ xpwd', section =' $ detail ', name = '$ section 'Where id =' $ user' pwd = 'pwd' ", $ conn); // perform the update operation
Echo mysql_error (); // there must be output here, because the SQL command is wrong.
Is conn incorrect?
Print_r ($ _ POST); it can be found that it is an empty array, and it is impossible to enter if. It must be empty.
Modify your form definition.
Add the name attribute to each element.
The same is true for submit. change value to value = "submit"
Change
You should be able to enter the if branch.
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
Localhost
06/30/15 13:38:48
Apache/2.2.9 (APMServ) mod_ssl/2.2.9 OpenSSL/0.9.8h PHP/5.2.6
You started to say guanli_ OK .php. you are guanl_ OK .php.
No error message
When you open a page that does not exist, the error 404 is returned...