POSCMS负责人 <?php $da_arr = $ci->db->query("SELECT xingye,szcs,tgfs,guanggaomude FROM dr_1_form_znggtffaxt where uid=$member[uid] ORDER BY inputtime DESC LIMIT 0,1")->row_array(); $ggmd= $da_arr[guanggaomude]; ?> {list action=sql sql='select * from @#1_ad where yxfaggmd like '%$ggmd%' order by rand() LIMIT 0,3' }
POSCMS负责人 <?php $da_arr = $ci->db->query("SELECT xingye,szcs,tgfs,guanggaomude FROM dr_1_form_znggtffaxt where uid=$member[uid] ORDER BY inputtime DESC LIMIT 0,1")->row_array(); $ggmd= $da_arr[guanggaomude]; ?> <?php $sql=urlencode("select * from @#1_ad where yxfaggmd like '%$ggmd%' order by rand() LIMIT 0,3");?> {list action=sql module=ad sql='$sql' }依旧调不出数据
<?php $sql=urlencode("select * from @#1_ad where yxfaggmd like '%\"品宣\"%' order by rand() LIMIT 0,3");?>
{list action=sql module=ad sql='$sql' }
{/list}
{$error} {$sql} 看这里输出