podsnap
-
Posts
2 -
Joined
-
Last visited
Never
Posts posted by podsnap
-
-
First up, I'm a bit of newbie when it comes to PHP and MySQL. I've been working on a project which has a MySQL database that the user can search by choosing to enter some or all of three fields in a form on a PHP page, which then, obviously, relate to specific variables and fields in the database.
Previously I had the default values of the variables as '-1' which meant that the results page simply ignored any of the variables that hadn't been filled in. However, now that the 8.0.2 update to Dreamweaver has forced the Type of each variable, it no longer ignores those values and so returns no results. In order to get a correct result I have to fill in all three, I can't just fill in one of the fields.
What do I have to do to regain the functionality of the results page simply ignoring any field that isn't filled in?
How do I create a wildcard search?
in Editor Help (PhpStorm, VS Code, etc)
Posted
Ultimately I want to have several fields on the page and the user will be able to enter as much or as little into the fields.
So while the first field it likely to be a keyword search I might also have a field for say, 'city' and if nothing is chosen then it will give results for all cities but, obviously, if London is chosen then it will give results for just London.
Any ideas how I go about this? Or can you point me to a good tutorial?
Thanks.
PS: I'm not, by any means, a code warrior, so speak slowly [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /]