Webmastersite.net
Register Log In

between search doesn't include =

Comments on between search doesn't include =

david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Aug 30, 2008 - 12:27 PM:

Hi Paul,

I would like the 'between' search to find number that are =< or => and not just < or > . Is there a new setting for this? If not, which php files and what lines are responsible for generating the mysql search term for this?

Thanks
David
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Aug 31, 2008 - 11:11 AM:

Use value="<=" and value=">=" in the template and that should work I think.
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Aug 31, 2008 - 11:38 AM:

Hi Paul,

How exactly? I have this right now:

<input type="hidden" name="pricecondition" value="between" />
<input type="text" name="pricesearch" />
<input type="text" name="pricesearchmax" />


You mean simply change the pricecondition value to "<="? That didn't work.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Sep 02, 2008 - 1:17 AM:

Nevermind, I somehow didn't process that it was a between search despite that word being all over the place. Not available, then. includes/searchlogic.php / includes/searchalllogic.php are the most likely files involved. Estimate 1 hour as custom project.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.