syntax error, unexpected T_CONCAT_EQUAL

January 24, 2010 by SLJ | Category:PHP | No Comment Font size: AA   AA

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”;
   }
  }

哈哈,看到蓝色的temp栏目了没?

是前面少了一个$号,是不是不算问题呢,但是如何不仔细的话就是大问题哦。

Related Posts / 相关文章



Leave a Comment:

*
*
*
*

↑ Top