[請益] header()問題
出現了以下的錯誤
Warning: Cannot modify header information - headers already sent by (output
started at .........)
php為:
<? $db = mysql_connect('127.0.0.1:3306', 'root', '1234');
mysql_select_db('vote'); ?>
<?
$count_query = mysql_query("update count set get_vote=get_vote+1 where name =
'$_POST[radio]'");
header("Refresh:3;URL=test.php");
?>
只是想讓php對資料庫+1後就回主頁,但卻不行,請問這樣的錯誤該如何解決呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.170.39.110
※ 編輯: martone 來自: 118.170.39.110 (03/07 18:48)
推
03/07 19:37, , 1F
03/07 19:37, 1F
→
03/07 19:38, , 2F
03/07 19:38, 2F
→
03/07 19:38, , 3F
03/07 19:38, 3F
→
03/07 19:38, , 4F
03/07 19:38, 4F
推
03/07 19:38, , 5F
03/07 19:38, 5F
推
03/07 20:36, , 6F
03/07 20:36, 6F
推
03/07 21:51, , 7F
03/07 21:51, 7F
→
03/07 21:56, , 8F
03/07 21:56, 8F
→
03/07 23:43, , 9F
03/07 23:43, 9F
PHP 近期熱門文章
PTT數位生活區 即時熱門文章