The value passed by the form in php cannot be found in the database.
Source: Internet
Author: User
The index cannot be found in the database for the php value passed by the form. php & nbsp; & lt; label & gt; Applicatorsmust-wear: & lt; inputtype = & quot; text & quot; size = & quot; 20 & quot php values passed by forms cannot be found in the database
Index. php
Applicators must-wear:
Mixers/loaders must-wear:
Environmental Hazards:
Search. php
$ Search = "select * from insecticide where (AMW like '% ". $ _ POST ['AMW']. "% 'or MMW like' % ". $ _ POST ['mmw']. "% 'or EH like' % ". $ _ POST ['eh ']. "% ')";
But cannot be found. Is there a syntax error in the statement? Thank you!
------ Solution --------------------
You can run the SQL statement in the database,
------ Solution --------------------
Are you sure the field in your data pants is AMW.
------ Solution --------------------
How can I execute the echo statement in phpmyadmin or command line?
------ Solution --------------------
Copy the echo SQL statement upstairs to phpmyadmin and execute it. if there is any result, let's see what went wrong.
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