Home  >  Article  >  Backend Development  >  syntax error, unexpected T_CONCAT_EQUAL_PHP教程

syntax error, unexpected T_CONCAT_EQUAL_PHP教程

WBOY
WBOYOriginal
2016-07-13 10:51:471165browse

syntax error, unexpected T_CONCAT_EQUAL

Parse error: syntax error, unexpected T_CONCAT_EQUAL, this problem is a simple problem that occurred when I was writing a php program today. In fact, it is not a problem. ,

Let’s take a look at this code.

sql ="Select * from * where user_myid= '$uid' and user_type=0";
$result = mysql_query( $sql ) ;
if( mysql_num_rows( $result ) )
{
while( $rs = mysql_fetch_array( $result ) )
{
temp.= " n";
}
}

Haha, did you see the blue temp column?

There is a $ sign missing in the front. It is not a problem, but it will be a big problem if you are not careful.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632537.htmlTechArticlesyntax error, unexpected T_CONCAT_EQUAL Parse error : syntax error, unexpected T_CONCAT_EQUAL, this problem was when I was writing a php program today A simple question arises, is this actually...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:mysql error_PHP tutorialNext article:mysql error_PHP tutorial