Hi,
If you want to display only few on this page and give link to another page then
<?php
mysql_connect('localhost','myusre','mypass');
mysql_select_db('dreden');
$result = mysql_query("select * from news ORDER by id desc");
$num_of_posts=mysql_num_rows($result);
// The number of post you want to display
$max_posts=4;
while($r = mysql_fetch_row($result)) {
$rowno++;
if($rowno<=$max_posts){
echo ("$r[1] | Posted by $r[2] | on $r[3]<br> ");
echo ("<div align=\"justified\">");
echo ("$r[4]<br><br>");
echo ("</div");
}
}
// Now if there are more posts to be displayed
if($num_of_posts>$max_posts){
// give link to wherever you want
}
?>
Cheers
Ajay
In while