我有这样的代码:什么是错的代码PHP
<div class="gigel"><?php
// In case there is opening and closing shortcode.
echo do_shortcode('[woocs show_flags=1 width='300px' flag_position='right']');
?></div>
这是简码:
[woocs show_flags=1 width='300px' flag_position='right']
这是错误:
Parse error: syntax error, unexpected '300' (T_LNUMBER) in /home/dacproie/public_html/test2/wp/wp-content/themes/mix/header.php on line 189
我怎样才能解决这个问题问题?
在此先感谢!
你是对的,当然,但你可能要解释为什么对OP为好。 –