I have a problem on CodeIgniter and MySQL logic maybe. I have two queries, I have executed them, each query has a different array variable and I want to put in one variable.
$query1 = $this->db->query("select a from base where id=1");
$query2 = $this->db->query("select b from base where id=2");
$this->data['result'] = $query1->result_array();
$this->data['result'] = $query2->result_array();
It's overwritten.