Home >Backend Development >PHP Tutorial >syntax error, unexpected T_CONCAT_EQUAL_PHP教程
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.= "
}
}
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.