Greater thand condition in search
Version: 4.1.40
URL:
|
idamay
Beginner Usergroup: Customer Joined: Jun 25, 2008 Total Topics: 4 Total Posts: 5 |
Posted 12/04/09 - 4: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: 65 Total Posts: 7614 |
Posted 12/10/09 - 6:50 AM:
Construct an advanced search, based on the advances search form. Those are always "and". http://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. |
Sorry, you don't have permission to post. Log in, or register if you haven't yet.

Print