[eluser]Unknown[/eluser]
I need make a or_Where() query, but make a error!
Code:
controller
$this->db->get->('number');
$this->db->where('name',$_POST['search']);
$information['people'] = $this->db->or_where('nick',$_POST['search']);
$this->load->view('lista_view',$information);
I think is correct, but in the view is the problem with the:
Code:
view
<?php if ($people->num_rows() > 0): ?>
Appears:
Fatal error: Call to undefined method CI_DB_mysql_driver::num_rows()
And if i remove the test with num_rows() apears another error, but this time with result()
Sorry for my poor English