06-04-2012, 04:50 AM
[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
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