Jump to content

Search Query wildcard problem


Recommended Posts

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.