I have a link that calls this function:
function delete($id)
{
//Delete from database
$this->db->delete('messages', array('id' => $id));
$data['delete_message'] = 'Message was successfully deleted';
redirect('admin');
}
As you can see I redirect to the admin function, and I want to pass the delete_message to that function. How can I do this?