Skip to main content
adicionou 58 caracteres ao conteúdo
Fonte Link
Wictor Chaves
  • 8,6mil
  • 2
  • 28
  • 62

Model

public function get_all($limit = NULL, $offset = NULL) { $this->db->select('cli_id, cli_nome'); $this->db->from("cliente");
$query = $this->db->get(); $data = $query->result(); return $data; }

$results = $this->Cliente_model->get_all_where($limit, $offset);

foreach ($results as $row) { echo $row->cli_nome; }

public function get_all($limit = NULL, $offset = NULL)
{
        $this->db->select('cli_id, cli_nome');
        $this->db->from("cliente");        
        $query = $this->db->get();
        $data = $query->result();
        return $data;
}

$results = $this->Cliente_model->get_all_where($limit, $offset);

foreach ($results as $row) {
  echo $row->cli_nome;
}

Model

public function get_all($limit = NULL, $offset = NULL) { $this->db->select('cli_id, cli_nome'); $this->db->from("cliente");
$query = $this->db->get(); $data = $query->result(); return $data; }

$results = $this->Cliente_model->get_all_where($limit, $offset);

foreach ($results as $row) { echo $row->cli_nome; }

Model

public function get_all($limit = NULL, $offset = NULL)
{
        $this->db->select('cli_id, cli_nome');
        $this->db->from("cliente");        
        $query = $this->db->get();
        $data = $query->result();
        return $data;
}

$results = $this->Cliente_model->get_all_where($limit, $offset);

foreach ($results as $row) {
  echo $row->cli_nome;
}
Fonte Link

Model

public function get_all($limit = NULL, $offset = NULL) { $this->db->select('cli_id, cli_nome'); $this->db->from("cliente");
$query = $this->db->get(); $data = $query->result(); return $data; }

$results = $this->Cliente_model->get_all_where($limit, $offset);

foreach ($results as $row) { echo $row->cli_nome; }