|
From: Benjamin C. <bc...@us...> - 2004-02-29 02:27:21
|
Update of /cvsroot/phpbt/phpbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25195 Modified Files: Tag: htmltemplates query.php Log Message: Added date search functionality Index: query.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/query.php,v retrieving revision 1.98.2.2 retrieving revision 1.98.2.3 diff -u -r1.98.2.2 -r1.98.2.3 --- query.php 16 Sep 2003 11:39:33 -0000 1.98.2.2 +++ query.php 29 Feb 2004 02:17:26 -0000 1.98.2.3 @@ -109,6 +109,12 @@ if (!empty($flags)) { $query[] = '('.@join(' and ',$flags).')'; } + if (!empty($start_date)) { + $query[] = 'b.created_date > '.strtotime($start_date); + } + if (!empty($end_date)) { + $query[] = 'b.created_date < '.strtotime($end_date); + } // Email field(s) if (!empty($email1)) { |