[eluser]Unknown[/eluser]
hello,,
i'm a beginner in codeigniter..
i hv a problem in pagination link,,,th firstpage is working fine,, click on the ‘2’ on the pagination links,it will display errors like,,
Code:
A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 0
Filename: views/viewbid.php
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: views/viewbid.php
controller
Code:
function viewbid($row=0)
{
$ids = $_POST['id'];
$data['profile']=$this->buyermodel->get_ads($ids);
$config['base_url'] = 'http://url/n/buyer/viewbid/';
$config['total_rows'] =$this->buyermodel->getNumAds();
$config['per_page'] = 3;
$config['uri_segment'] = 4;
$this->pagination->initialize($config);
$data['test']=$this->buyermodel->bid_data($ids,$row);
$data['links']= $this->pagination->create_links();
$this->load->view('viewbid',$data);
}
If more details are needed then I can give them. Hopefully someone can help me.
Thank You!