看板 PHP 關於我們 聯絡資訊
※ 引述《papasoul (Mike)》之銘言: : 我的原始碼如下 : <?php : session_start(); : header("location:VIEW1.php"); : require("../DB.PHP"); : /* 接受表單資料 */ : $email=$_POST["email"]; : $address=$_POST["address"]; : $tel=$_POST["tel"]; : $id=$_SESSION["user"]; : /* 更新資料 */ : $sql="UPDATE user SET email='$email',address='$address', : tel='$tel' where id='$id'"; : mysql_query($sql); : ?> : 我要修改資料庫裡面的值,可是都無法修改 : 表單上也有顯示資料庫裡的資料 : 請問哪裡有問題? 乍看之下,你的程式沒問題,如果問題不是出現在PHP的程式, 那是不是檢查一下資料庫是否有開放權限可以UPDATE -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.190.231