Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Search date between two dates in search screen
Re: Search date between two dates in search screen [message #1847 is a reply to message #1782] Fri, 14 November 2008 12:49 Go to previous message
bonzo_bcn is currently offline  bonzo_bcn
Messages: 152
Registered: June 2008
Senior Member
Ok, looing at the example I found I needed more code:
        if (empty($this->sql_search)) return $where;

        // convert from string to an associative array
        $fieldarray = where2array($this->sql_search, false, false);

	if (!empty($fieldarray['date_from']) OR !empty($fieldarray['date_to'])) {
	    $fieldarray['fecnac'] = rangeFromTo($fieldarray['date_from'], $fieldarray['date_to'], true);
	    unset($fieldarray['date_from']);
	    unset($fieldarray['date_to']);
	} // if
	
	$this->sql_search = array2where($fieldarray);


Everything is working now, thanks.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to default values in output4 screen?
Next Topic: Modify $report within the code
Goto Forum:
  


Current Time: Fri Nov 29 21:40:35 EST 2024

Total time taken to generate the page: 0.01001 seconds