how to move previous and next billno and
view in the view page.
public function Bill_Prev1(){
$this->db->query('SELECT * from salesitem where billno = 1 AND
billno > 1 ORDER BY billno ASC LIMIT 1;')->result_array();
$this->db->join('salesbill', 'salesbill.no = salesitem.billno','left
outer');
$this->db->join('parmaster','parmaster.Pcode =
salesbill.partyname','left outer');
$query = $this->db->get()->row();
return $query;
}
public function Bill_Prev(){
$query = $this->db->query('SELECT * from
salesitem where billno = 1 AND billno > 1
ORDER BY billno ASC LIMIT 1;')-
>result_array();
return $query;
}
это код модели ..............
Мой prblm - как перейти к предыдущему и следующему без использования codeiginter ..........