• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
On Update/Delete data is not showing properly

#7
[eluser]Was[/eluser]
Hello,
here is the my products listing code and i m not using any cache method.

function products($page=0)
{
$config['base_url'] = base_url().'index.php/admin/products/';
$config['total_rows'] =$this->common->numberofrecord("*","products","");
$config['per_page'] =30;
$config['uri_segment']=3;
$this->pagination->initialize($config);
$data_common=$this->common->fetchdata("*","products","","order by id desc",$page,$config['per_page']);
$data['data_common']=$data_common;
if($this->session->userdata('admin_id')!='')
{
$this->load->view('admin/header');
$this->load->view('admin/products',$data);
$this->load->view('admin/footer');
}
else
{
redirect('admin','');
}
}

and this is the common query which i have written in models for fetching the data

function fetchdata($fieldname,$tblname,$where,$orderby,$page,$max)
{
$query=$this->db->query("select ".$fieldname." from ".$tblname." ".$where." ".$orderby." limit $page,$max");
$data=$query->result_array();
return $data;
}

thanx
Was


Messages In This Thread
On Update/Delete data is not showing properly - by El Forum - 06-04-2012, 03:04 AM
On Update/Delete data is not showing properly - by El Forum - 06-04-2012, 03:38 AM
On Update/Delete data is not showing properly - by El Forum - 06-04-2012, 04:16 AM
On Update/Delete data is not showing properly - by El Forum - 06-04-2012, 04:36 AM
On Update/Delete data is not showing properly - by El Forum - 06-04-2012, 04:50 AM
On Update/Delete data is not showing properly - by El Forum - 06-04-2012, 05:15 AM
On Update/Delete data is not showing properly - by El Forum - 06-04-2012, 05:27 AM
On Update/Delete data is not showing properly - by El Forum - 06-04-2012, 05:40 AM
On Update/Delete data is not showing properly - by El Forum - 06-04-2012, 05:51 AM
On Update/Delete data is not showing properly - by El Forum - 06-04-2012, 05:52 AM
On Update/Delete data is not showing properly - by El Forum - 06-04-2012, 06:05 AM
On Update/Delete data is not showing properly - by El Forum - 06-04-2012, 06:20 AM
On Update/Delete data is not showing properly - by El Forum - 06-04-2012, 06:25 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.