[eluser]Mitja[/eluser]
Code:
$arg = array();
$arg[] = "arrangement_event = 0";
if($this->input->post('country'))
{
$country = $this->input->post('country');
$arg[] = "where_is_country LIKE '%" . $country . "%'";
}
if($this->input->post('city'))
{
$city = $this->input->post('city');
$arg[] = "where_is_city LIKE '%" .$city . "%'";
}
$searcharg = implode(" AND ", $arg);
$query = $this->db->query("SELECT * from arrangement_event WHERE $searcharg");
how i can see what is behind $query = $this->db->query("SELECT * from arrangement_event WHERE $searcharg");
Is it possible to see this sql statement that i will se if is everything correct.
Thx