order by pid desc加到这个语句的那个位置?
<!--
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/
--><?php
$sql = "SELECT `subject`, `author`, `fid` ,`first`,`tid`,`pid` FROM `forum_post` WHERE 1 ";
$result = mysql_query($sql) or die("查询失败!");
$number = 6;
while ($row=mysql_fetch_array($result))
{
if ($row['fid'] ==56 && $row['first'] !=0 && $number != 0)
{
?>
<tr>
<td><a href="message/mes.php?id=<?php echo $row['pid'];?>"><h3>
<?php echo substr($row['subject'],0,64);$number--;?></h3></a></td>
<td><a href="message/mes.php?id=<?php echo $row['pid'];?>"><h3>
<?php echo substr($row['author'],0,16);?></h3></a></td>
</tr>
<?php
}
}?>
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号