How to ADD data from CRUD ajax in php codeigniter?
As I see, you are using redirect('student'); on ajax call. Dot do it if you want work with ajax. I advise you:
$array = array( 'link' => 'strudent', 'status' => true);echo json_encode($array);return;
And on ajax success:
window.location.href = data.link;