Webmastersite.net
Register Log In

Greater thand condition in search

Comments on Greater thand condition in search

idamay
Beginner

Usergroup: Customer
Joined: Jun 25, 2008

Total Topics: 4
Total Comments: 5
idamay
Posted Dec 04, 2009 - 6:07 AM:

Hello,

I need to add a search box to search for items where a custom date field value is greater than today.

<form action="http://www.mysite.com/search.php?" >
<input type="text" name="search" size="{STANDARDSIZE}" />
<input type="hidden" name="filled" value="1" />
<input type="hidden" name="action" value="filter" />
<input type="hidden" name="whichtype" value="links" />
<input type="hidden" name="condition" value="like" />
<input type="hidden" name="startdatecondition" value=">">
<input type="hidden" name="startdatesearch" value={THISMEMBERTODAYIS} />
<input type="submit" value="Search" class="button"></form>

The results are events that contain the keyword OR have not ended yet.

I need events that contain the keyword AND have not ended yet.

Thanks in advance for any help! Much appreciated!
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 10, 2009 - 8:50 AM:

Construct an advanced search, based on the advances search form. Those are always "and". scripts.webmastersite.net/w...l/other/searching-162.html

You need quotes around the value {THISMEMBERTODAYIS}.

I didn't think there was a date searching option in 4.1 though.
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.