PHP头条
热点:

syntax error, unexpected T_CONCAT_EQUAL


syntax error, unexpected T_CONCAT_EQUAL

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栏目了没?

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

 

www.phpzy.comtrue/php/29824.htmlTechArticlesyntax error, unexpected T_CONCAT_EQUAL syntax error, unexpected T_CONCAT_EQUAL Parse error : syntax error, unexpected T_CONCAT_EQUAL,这个问题是我今天在写php程序时出现的一个简单的问题,其实这算不上什么问题,...

相关文章

    暂无相关文章

PHP之友评论

今天推荐