Mysql error prompt not displayed

Source: Internet
Author: User
The mysql error prompt is not displayed. There are 10 checkboxes. The database reports an error if the value is null if the value is not checked.


Reply to discussion (solution)

How can I hide mysql on a webpage so that users accessing the server cannot see the error?

Unselected checkbox is not submitted

However, the mysql error prompt is displayed during the test. I do not want users accessing the web page to see the mysql error prompt.

If you have ruled out the error, will no error be displayed?

Try adding these two sentences. We do not recommend using the error blocker @.

 

However, the mysql error prompt is displayed during the test. I do not want users accessing the web page to see the mysql error prompt.
Modify php. ini
Error_reporting: E_ALL &~ E_DEPRECATED
Display_errors: Off

This prescription is temporary, but takes root measures

Because I need to accept all the checkboxes to determine whether the value is null. if not, the corresponding value is saved, if I define a variable and the value of the variable in the acceptance process is null, an error is returned.

Please wait !!!!!!!!!!!!!!!!!!!!!

Blocking error checking is a method of self-deception
You need to check the possible errors by yourself.
In general, the sample code in the tutorial does not include the error check code.

You can paste your code to see

Mysql errors should be easily solved!

Error_reporting

Is the database field not null? In this case, an error occurs when the NULL value is inserted.

In the program, you need to filter the possible illegal data, and the database design must be consistent with the submitted data.

Thank you for your answers upstairs. I will try again.

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.