作者Derrick0910 (枫仔....)
看板PHP
标题Re: [请益] 到底是哪里错误了~有人可以帮看吗?
时间Sun Dec 7 19:19:23 2008
※ 引述《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
1F:→ s5846125 :或许你该再了解一下php的变数.阵列,还有list()的用法 12/07 19:34
2F:推 emn178 :$_POST['NICK'], $_POST['Pw'] 12/08 10:48