[英]header is working on localhost but not working on online hosting
$save = "UPDATE user SET M_ID='{$_SESSION['ha1'] }' WHERE U_ID ='{$_SESSION['ID'] }'";
$reslt = mysqli_query($conn, $save) or die(mysql_error());
header('location: treatment.php');
標頭無法在線使用,但可以在localhost上使用,請幫忙嗎?
更改
mysql_error()
至:
mysqli_error($conn)
並啟用PHP錯誤報告以查看腳本執行時會發生什么。
嘗試將小寫的“位置”更改為“位置”(大寫的“ L”)
他的問題可能來自本地使用Windows和服務器上的Linux
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.