$sql = "SELECT nppage FROM `$newsoptions` WHERE 1";
$query = mysql_query($sql);
$nppage = mysql_result($query,0);
if(!$nnpage){
$sql = "SELECT nppage FROM `$newsoptions` WHERE 1";
$query = mysql_query($sql);
$nppage = mysql_result($query,0);
}
$nnpage = 5;
include ('n13news/index.php');
<?php
#this is the first include
$nppage = '5'; #show 5 news posts
$cat[] = "cat1"; #show posts assigned to cat1
include 'news/index.php';
?>
<hr />
<?php
#this is the second include
$nppage = '10'; #show 10 news posts
$cat[] = "cat2"; #show posts assigned to cat2
include 'news/index.php';
?>