***********以下是我的代码***********include("CONNECTDATABASE.PHP"); $sql="select * from subject ORDER BY ID DESC"; $result=mysql_query($sql); while($row=mysql_fetch_row($result)) { echo "ID:$row[0]";if($row[0]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|BorderID:$row[1]";if($row[1]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|PostUserID:$row[4]";if($row[4]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|viewcount:$row[7]";if($row[7]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|followcount:$row[8]";if($row[8]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|password:$row[10]";if($row[10]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|BorderID2:$row[11]";if($row[11]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|Class:$row[13]";if($row[13]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|Auditing:$row[14]";if($row[14]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|level:$row[15]";if($row[15]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|share:$row[16]";if($row[16]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|<br/>"; } ?>
看地霧殺殺 $sql="select * from subject where 1<2 ORDER BY ID DESC"; $result=mysql_query($sql);或者 $sql="select * from subject where id>0 ORDER BY ID DESC"; $result=mysql_query($sql);
$sql="select * from subject ORDER BY ID DESC";
$result=mysql_query($sql);
while($row=mysql_fetch_row($result))
{
echo "ID:$row[0]";if($row[0]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|BorderID:$row[1]";if($row[1]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|PostUserID:$row[4]";if($row[4]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|viewcount:$row[7]";if($row[7]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|followcount:$row[8]";if($row[8]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|password:$row[10]";if($row[10]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|BorderID2:$row[11]";if($row[11]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|Class:$row[13]";if($row[13]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|Auditing:$row[14]";if($row[14]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|level:$row[15]";if($row[15]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|share:$row[16]";if($row[16]=="")echo"<font color=\"red\"><strong>空</strong></font>";echo"|<br/>";
}
?>
$sql="select * from subject where 1<2 ORDER BY ID DESC";
$result=mysql_query($sql);或者
$sql="select * from subject where id>0 ORDER BY ID DESC";
$result=mysql_query($sql);
select * from subject id>4980 order by id desc