This topic is locked

Date range

4/4/2008 7:44:05 AM
PHPRunner General questions
coolbyte author

I would like to include two sets of pulldown menue into the generated charts and reports to enter a time rage (eg, from Januray,1st to Janary 15th). Only the data within the time range shall be considered by the reports. How can I code this?

J
Jane 4/4/2008

Hi,
use Advanced search page and Between search option for that.

Set up advanced search page as the first page using BeforeProcess event on the Events tab.

Here is a sample code:

if ($_REQUEST["a"]!="advsearch")

{

header("Location: ReportName_search.php");

exit();

}