0
In a precise project that appears only the active publications on the main page I am using Codeigniter, I used the following lines of code:
Model:
$this->db->select('*');
$this->db->from("publicacoes");
$this->db->where('ativacao' == '1');
$data = $this->db->get()->result_array();
return $data;
But when I leave this line "uncommented" the application "breaks"
$this->db->where('ativacao' == '1');
Only a hint, instead of using the from line, you can already put the table name inside the get thus: $this->db->get('publicacoes')->result_array();
– Luiz