我有這樣的代碼:什麼是錯的代碼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爲好。 –