分享:
▼
x0
|
[PHP][讨论] 请大大帮帮我...
我目前在写程式ㄚ.. 我是用 php+mysql+apache+phpmyadmin... 然后..我现在遇到一个很大的问题.... 就是...我从php表单回存进资料库的资料皆为乱码... 从资料库取出来的资料也是乱码.... 请问我该怎么解决....
另外...我使用header..... 但他却出现以下错误讯息....
Warning: Cannot modify header information - headers already sent by (output started at C:Program FilesApache GroupApache2htdocsmyphpstudentapplyprocess.php:14) in C:Program FilesApache GroupApache2htdocsmyphpstudentapplyprocess.php on line 28
这是啥意思ㄚ??
以下是我的程式码...
<? //session_start(); include("connect.php"); //include("config.php"); //CheckId(); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=big5"> <title>申请核准</title> </head>
<body> <? //-->>这里为14行... $date = date("Y-m-d"); $sql_update = "update absent_info set Absent_Reason = '$reason' , Apply_Date = '$date' where Absent_No = $absent"; $sql_select = mysql_query("select Apply_State from absent_info where Absent_No = '$Absent'"); $state = mysql_fetch_array($sql_select); if($state != 0){ echo "请假编号有误!!请重新输入!!";?> <script language="javascript"> alert('请选择身份!'); history.go(-1); </script> <? } else{ mysql_query($sql_update); header("location:apply_processing.php"); //-->>这里是28行 } ?> </body> </html>
|