Heim  >  Artikel  >  Backend-Entwicklung  >  syntax error, unexpected T_CONCAT_EQUAL_PHP教程

syntax error, unexpected T_CONCAT_EQUAL_PHP教程

WBOY
WBOYOriginal
2016-07-13 10:51:471162Durchsuche

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.= " n";
   }
  }

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

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

 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/632537.htmlTechArticlesyntax error, unexpected T_CONCAT_EQUAL Parse error : syntax error, unexpected T_CONCAT_EQUAL,这个问题是我今天在写php程序时出现的一个简单的问题,其实这算不...
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn