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

#5
[eluser]Was[/eluser]
Hello, thanx for the reply

here is the my code which i m using

function deleteproduct($id)
{
if($this->session->userdata('admin_id')!='')
{
if($id)
{
$this->common->db_delete('product','id',$id);
redirect('admin/products', 'refresh');
}
else
{
redirect('admin/products', 'refresh');
}
}
else
{
redirect('admin', 'refresh');
}
}

So its deleting the product and redirecting on listing page but still the deleted item is appearing on my listing page and i need to refresh the page manually then the deleted item is disappear from listing page. so this is the problem.

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.