0
我想插入前重定向頁面,當某些情況發生時,頁面在firebug中成功重新載入。重定向頁面插入雜貨店前
我的代碼:
$crud->callback_before_insert(array($this,'callback_function'));
功能:
$getRow1= $this->db->where('nationalityID',$getRow->id)->get('table_name')->row();
$data = array('courseID'=>$courseID,'userID'=>$getRow1->id);
$insert= $this->db->insert('table_name1',$data);
if($insert) {
$newlink = base_url()."admin/control_trainee_courses/data/". $courseID;
echo "<script>" . "window.location = '$newlink';</script>";
// or using redirect(base_url()."index.php/admin/control_trainee_courses/data/".$courseID ;
}
請幫助。
沒有,也沒有工作,我提到,在我的問題 – MYoussef