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.= "
}
}
哈哈,看到蓝色的temp栏目了没?
是前面少了一个$号,是不是不算问题呢,但是如何不仔细的话就是大问题哦。
立即学习“PHP免费学习笔记(深入)”;
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号