I am creating a search page with php and codeigniter.
I created the query which is;
"SELECT * FROM my_account WHERE inex='$inex' AND type='$type' AND date BETWEEN '$date1' AND '$date2' "
$date1 and $date2 values comes from form input and I have no problem here.
On the other hand $inex value is also coming from form dropdown.
$options = array(
echo "<td>" . form_dropdown('inex',$options) ."</td>";
Now, if i do a search between two dates, i have to use Income or Expense values.
But, I need the third option in the options array so that i can also choose both so that i can see both income and expenses between these two dates.
I think there is a simple answer for that but somehow i cant figure it out.
helps are appreciated. thanks in advance.