Home > php教程 > php手册 > syntax error, unexpected T_CONCAT_EQUAL

syntax error, unexpected T_CONCAT_EQUAL

WBOY
Release: 2016-05-25 16:53:26
Original
1621 people have browsed it

Parse error: syntax error, unexpected T_CONCAT_EQUAL,这个问题是我今天在写php程序时出现的一个简单的问题,其实这算不上什么问题,下面我们来看看这段代码。

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.= "<friend fid="".$rs[0]."" fname="".$rs[1]."" /> n"; 
    } 
}
Copy after login

问题分析:看代码里的temp,是前面少了一个$号,是不是不算问题呢,但是如何不仔细的话就是大问题了。


教程地址:

欢迎转载!但请带上文章地址^^

Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template