Welcome Guest, Not a member yet? Register   Sign In
how to see what is behind $query
#1

[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


Messages In This Thread
how to see what is behind $query - by El Forum - 07-09-2008, 11:28 AM
how to see what is behind $query - by El Forum - 07-09-2008, 01:48 PM
how to see what is behind $query - by El Forum - 07-10-2008, 12:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB