联系官方销售客服
1835022288
028-61286886
{sql sql='select * from dr_my_school' return=s} <tr> <td rowspan="3" align="center" valign="middle"><a href="/{$s.shoupin}/"><img src="http://www.hbcrgk.com/style/images/{$s.shoupin}logo.png" alt=""> <div>{$s.name}</div> </a></td> <td align="center" valign="middle">高起专</td> <td align="center" valign="middle">2.5年</td> <td> <?php $query=urlencode('select * from dr_my_zhuanye where sname=$s.name and zy_xuezhi="2.5年"');?> {sql sql='$query' return=z} <a href="{$z.zy_href}">{$z.zy_name}</a> {/sql} </td> </tr> {/sql}
sname=$s.name这块我想的是拿上一层返回的代码当条件,但好像不支持这样写,,应该怎么实现呢