ถ้าเรา SELECT * FROM news order by id desc แล้วให้มันแสดงข้อมูลถัดจากอันแรก เราต้องเขียนยังไงหรือค่ะ คือถ้าเรามี data 100 ก็เอาเฉพาะ 99 ลงมานะค่ะ คืออันล่าสุดไม่ต้องแสดง
$sql="SELECT * FROM news order by id desc";
$res=mysql_query($sql) or die(mysql_error());
$i=0;
while($data = mysql_fetch_assoc($res)){
if($i>0)
echo $data["id"]."/".$data["article"]."/".$data["content"]."<br />\n";
$i++;
}