文章目录[隐藏]
我写一个无限级分类下拉功能,到下面这个代码老是报错,折腾一天了,求高手看看。
@本文9来源gao($daima.com搞@代@#码8网^搞代gaodaima码
$str_select.= "" .str_repeat( "-" ,$depth) . $row['classname'].""; //字符串构建
错误提示:Parse error: syntax error, unexpected T_IF
回复讨论(解决方案)
求高手帮忙11!
$str_select .= “” .str_repeat( “-” ,$depth) . $row[‘classname’].””; //字符串构建
参考楼上,话说你分开写好了,容易知道错哪
建?不要?在同一行。
如果一定要可以???
$str_select.= "" .str_repeat( "-" ,$depth) . $row['classname'].""; //字符串构建