Welcome Guest, Not a member yet? Register   Sign In
error code 1096?
#1

[eluser]tnathos[/eluser]
mmm i dont know for what show me this error if the select works fine..

Code:
function getPreguntas()
    {    
        $this->db->select('idPregunta');
        $this->db->from('jgo_asignadas_prefree');
        $this->db->where('estado','PD');
        $this->db->where('id',$this->session->userdata('id'));
        $query = $this->db->get();    
        if($query->num_rows() > 0){        
            return $this->db->get();
        }
    }

the curious is if quit $query = $this->db->get(); and the (if) and only put return $this->db->get();, yes works... any?


Messages In This Thread
error code 1096? - by El Forum - 10-19-2009, 07:09 PM
error code 1096? - by El Forum - 10-19-2009, 07:25 PM
error code 1096? - by El Forum - 10-20-2009, 02:15 AM
error code 1096? - by El Forum - 10-20-2009, 08:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB