Re: [請益] 到底是哪裡錯誤了~有人可以幫看嗎?

看板PHP作者 (楓仔....)時間17年前 (2008/12/07 19:19), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
※ 引述《Derrick0910 (楓仔....)》之銘言: : 我在弄登入的網頁 : 原本是PHP4的寫法 : 想說要改成PHP5的寫法 : 結果就出現了 : Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting : ',' or ')' in : 有人可以跟我說是哪裡搞錯了嗎~ : 附上原始檔~ : <?php : session_start(); : include "db.php"; : $sql="select NICK,Pw from tenter where NICK='$login_id'"; : $list =mysql_query($sql,$link); : list('$_POST[NICK]','$_POST[Pw]')= mysql_fetch_row($list); : ------>他一直卡在這~囧 : mysql_close($link); 把單引號弄掉~會成了 Parse error: syntax error, unexpected T_STRING in D:\wamp\www\check_tenant_member.php on line 11 = = "我試過好多次~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 121.254.101.95

12/07 19:34, , 1F
或許你該再了解一下php的變數.陣列,還有list()的用法
12/07 19:34, 1F

12/08 10:48, , 2F
$_POST['NICK'], $_POST['Pw']
12/08 10:48, 2F
文章代碼(AID): #19Ex51JS (PHP)
文章代碼(AID): #19Ex51JS (PHP)