Hi,
you don't tell to mysql what page has to do...
if(!$rowstart) $rowstart=0;
$sql = "select * from x_news ORDER BY id DESC";
You have to add the string " LIMIT $rowstart,num" at your query.
This for example show 2 news each time:
if(!$rowstart) $rowstart=0;
$sql = "select * from x_news ORDER BY id DESC LIMIT $rowstart,2";
P.S:just any hint, i think better not use $result2 in your code, is enough $result...