Good Morning!
How can find the period date in my table?
If i want search the period from 01/01/2010(dataappuntamento) at 31/01/2010 (dataappuntamento2)...
Please look my code in Where:
How can find the period date in my table?
If i want search the period from 01/01/2010(dataappuntamento) at 31/01/2010 (dataappuntamento2)...
Please look my code in Where:
<?php
$search_array = array
('provenienza','recordtime','cognome','nome','provincia','cellulare','telefonofisso','città ','provincia','tipocontratto','tipoazienda','documentazione','ritardi','pignoramenti','protesti','fattibilità ','dataappuntamento','dataappuntamento2','agente','datasospensione');
$where = array();
foreach ( $search_array as $search ) {
$value = JRequest::getVar($search, '' , 'post');
if ( $value ) {
$where[] = " $search LIKE '$value%' ";
}
}
if ( !empty($where) ) {
echo " WHERE ".implode(' AND ', $where);
}?>