聯(lián)系官方銷售客服
1835022288
028-61286886
報(bào)錯(cuò) syntax error, unexpected 'if' (T_IF),我的代碼,我原本想一次性獲取數(shù)據(jù),然后根據(jù)fs的id值判斷是線上課程還是線下課程,來分類,但出現(xiàn)報(bào)錯(cuò),if無法判斷。。
{module module=kc catid=1 IN_zy=$cat['dirname'] num=16 return=apx}{/module} <div class="wrap zyssdbox"> ... <div class="hd"><strong>線上課程</strong></div> ... {php $iiv=dr_linkage('fangshi', $pxval['fs'], 1, 'ii')} {if $iiv==1} <div class="picItem"> <a rel="nofollow" href="{$pxval['url']}" target="_blank"><img src="/" width="120" height="90"></a> <p><a rel="nofollow" href="{$pxval['url']}" target="_blank">{$iiv}{$pxval['title']} </a></p> </div> {/if} {/loop} ....
官方提醒:使用module內(nèi)容循環(huán)標(biāo)簽的生成工具,填寫參數(shù)就可以生成相關(guān)的代碼,每個(gè)參數(shù)后面都有用法解釋