Php database modification problems

Source: Internet
Author: User
Tags php database
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...

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.