调用PHPwind的最新贴子(含调用论坛版块名)

2024-01-27 16:56 小编

<table width="100%" border="0" cellspacing="1" cellpadding="3">
[e:loop={"select tid,subject,postdate,fid from phpwinddb.pw_threads order by tid desc limit 10",10,24,0}]
<?php
$fr=$empire->fetch1("select name from phpwinddb.pw_forums where fid='$bqr[fid]'");
?>

<tr><td>
[<?=$fr[name]?>] <a href="/bbs/read.php?tid=<?=$bqr[tid]?>" target="_blank"><?=$bqr[subject]?></a> (<?=date('Y-m-d',$bqr[postdate])?>)
</td></tr>
[/e:loop]
</table>

phpwinddb.pw_forums为phpwind的版块表名,其中“phpwinddb”为phpwind的数据库名称。


在线咨询 拨打电话

电话

13363039260

内部绝密传真282期

微信二维码