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.