syntax error, unexpected T_CONCAT_EQUAL
來源:程序員人生 發(fā)布時(shí)間:2014-04-21 09:52:45 閱讀次數(shù):3149次
Parse error: syntax error, unexpected T_CONCAT_EQUAL,這個(gè)問題是我今天在寫php程序時(shí)出現(xiàn)的一個(gè)簡單的問題,其實(shí)這算不上什么問題,下面我們來看看這段代碼。
- 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";
- }
- }
問題分析:看代碼里的temp,是前面少了一個(gè)$號(hào),是不是不算問題呢,但是如何不仔細(xì)的話就是大問題了。
生活不易,碼農(nóng)辛苦
如果您覺得本網(wǎng)站對您的學(xué)習(xí)有所幫助,可以手機(jī)掃描二維碼進(jìn)行捐贈(zèng)