0
For example, I am sending an id array [0] => 1, [1] => 3 and I want to show this in my html as a result. In the case that you search in the database with the first id save in the array and then search with the second id and finally return an array containing the other two arrays.
public function getRecibos($codigosRecibo)
{
$result = array('');
foreach ($codigosRecibo as $codigoRecibo)
{
$this->db->select('*');
$this->db->where('idRecibo', $codigoRecibo);
$this->db->join('cheque', 'cheque.idCheque = recibo.recibo_idCheque', 'left');
$this->db->from('recibo');
$result = $this->db->get();
}
return $result->result();
}