|
今天遇到一个问题,
function shipin_insert()
{
$this->db->insert('shipin',$_POST);
echo "<script language='javascript'>alert('添加成功!');</script>";
redirect('national/index');
exit;
}
这段代码运行后报错:
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at E:\xampp\htdocs\codeigniter\system\application\controllers\national.php:26)
Filename: helpers/url_helper.php
Line Number: 541
我试了在程序开头加上ob_start();函数,但是不好使,帮我一下吧。。。 |
|