macromedia.dreamweaver.appdev
[Top] [All Lists]

Re: Searchbox values do not work correctly

Subject: Re: Searchbox values do not work correctly
From: David Powers
Date: Fri, 21 Sep 2007 13:25:07 +0100
Newsgroups: macromedia.dreamweaver.appdev


David Powers wrote:
if (isset($_GET['PropType']) && in_array($_GET['PropType'], $propTypes)) {
  $PropType = "= '".$_GET['PropType']."'";
} else {
  $PropType = 'LIKE %';
}

I missed out the quotes around the wildcard character. Change the preceding section to this:

if (isset($_GET['PropType']) && in_array($_GET['PropType'], $propTypes)) {
  $PropType = "= '".$_GET['PropType']."'";
} else {
  $PropType = "LIKE '%'";
}

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

<Prev in Thread] Current Thread [Next in Thread>