Re: [請益] 到底是哪裡錯誤了~有人可以幫看嗎?
※ 引述《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
12/07 19:34, 1F
推
12/08 10:48, , 2F
12/08 10:48, 2F
PHP 近期熱門文章
PTT數位生活區 即時熱門文章
-5
14