Jump to content


Photo

Search Query wildcard problem


  • Please log in to reply
No replies to this topic

#1 podsnap

podsnap
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 06 June 2006 - 03:07 PM

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?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users