|
From: Benjamin C. <bc...@us...> - 2004-02-29 02:22:15
|
Update of /cvsroot/phpbt/phpbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24410 Modified Files: Tag: phpbt-1_0 query.php Log Message: Added date search functionality Index: query.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/query.php,v retrieving revision 1.96.2.2 retrieving revision 1.96.2.3 diff -u -r1.96.2.2 -r1.96.2.3 --- query.php 25 Jul 2003 02:50:07 -0000 1.96.2.2 +++ query.php 29 Feb 2004 02:12:21 -0000 1.96.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) |