Home > Backend Development > PHP Tutorial > PHP语法异常,折腾一天了,求高手帮忙

PHP语法异常,折腾一天了,求高手帮忙

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:13:42
Original
882 people have browsed it

PHP语法错误,折腾一天了,求高手帮忙。
我写一个无限级分类下拉功能,到下面这个代码老是报错,折腾一天了,求高手看看。

<br />           $str_select.= "<option value=" .$row['classid'] if ($classid == $row['classid']){ echo "selected"}.">" .str_repeat( "-" ,$depth) . $row['classname']."</option>"; //字符串构建<br />
Copy after login


错误提示:Parse error: syntax error, unexpected T_IF
------解决思路----------------------
$str_select .= ""; //字符串构建

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template