如何解决此错误:解析错误:语法错误,第34行的C:\ wamp64 \ www.hum \PHP \ profile.php中的意外'$ _SESSION'(T_VARIABLE) [英] How to fix this error:parse error: syntax error, unexpected '$_SESSION' (T_VARIABLE) in C:\wamp64\www\luana\PHP\profile.php on line 34
问题描述
这是错误产生的地方,在这一行在代码中:
$ sql =SELECT * FROM uname ='$ _ SESSION ['users']';
这就是错误所说的:
解析错误:语法错误,意外的'$ _SESSION'(T_VARIABLE)in第34行C:\ wamp64 \ www.h \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\尝试过:
试图查找错误。一直在来回寻找错误的位置,但无法找到它解决方案
sql =SELECT * FROM uname ='
_SESSION ['users']';
这就是错误所说的:
解析错误:语法错误,意外的'
_SESSION'(T_VARIABLE)在第34行的C:\ wamp64 \\\\ luana \ php \ profile.php
我尝试过:
试图寻找错误。一直在来回寻找错误的位置,但无法找到它
hey I am doing this assignment in the wamp server but i came across this error. it is a syntx error but i am trying to see where the syntax error is i cant seem to find it at all
this is where the error originate, on this line in the code:
$sql ="SELECT * FROM uname ='"$_SESSION['users']"'";
and this is what the error says:
Parse error: syntax error, unexpected '$_SESSION' (T_VARIABLE) in C:\wamp64\www\luana\php\profile.php on line 34
What I have tried:
trying looking for the error. have been going back and forth searching to see where the error is but cant find it
sql ="SELECT * FROM uname ='"
_SESSION['users']"'";
and this is what the error says:Parse error: syntax error, unexpected '
_SESSION' (T_VARIABLE) in C:\wamp64\www\luana\php\profile.php on line 34
What I have tried:
trying looking for the error. have been going back and forth searching to see where the error is but cant find it
这篇关于如何解决此错误:解析错误:语法错误,第34行的C:\ wamp64 \ www.hum \PHP \ profile.php中的意外'$ _SESSION'(T_VARIABLE)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!