I need to query the database where the total_pago must equal the valor in the table contas_pagar
class Phpexcel_model extends CI_Model {
function get_users() {
$query = $this->db->get_where("contas_pagar", array('total_pago' == 'valor'));
return $query->result_array();
}
As the image the result should bring only the data that match the query, but it is bringing all the data from the table