db->where('topic_id',$topic_id);
$this->db->order_by('id','asc');
$get=$this->db->get('notes');
foreach($get->result() as $rowNext1){
$i++;
if($rowNext1->id==$id){
break;
}
}
$this->db->where('topic_id',$topic_id);
$this->db->where('type','application');
$this->db->order_by('id','asc');
$this->db->limit(1,$i);
$get=$this->db->get('notes');
foreach($get->result() as $rowNext){
$nextId=base64_encode($rowNext->id);
$nextIdname=$rowNext->name;
?>
Next Lesson >>