$ByPage) { $NextPrev = "
"; $NextPrev .= ""; $NextPrev .= "
Pages: | "; $pages = ceil($rows/$ByPage); for($i = 0; $i <= ($pages); $i++) { $PageStart = $ByPage*$i; $i2 = $i + 1; if($PageStart == $Start) { $links[] = " $i2\n\t "; } elseif($PageStart < $rows) { $links[] = " $i2\n\t "; } } $links2 = implode(" | ", $links); $NextPrev .= $links2; $NextPrev .= "|

\n"; } $qData = "select * from `news` where `NewsID` != '0' $Filter order by `NewsID` Desc limit $Start, $ByPage"; $rData = mysql_query($qData) or die(mysql_error()); if(mysql_num_rows($rData) == '0') { echo "
No record found in database.
"; } else { $Title_Link = tdHeading("Title",Title,VariableList); $Date_Link = tdHeading("Date",Date,VariableList); $Short_Description_Link = tdHeading("Short Description",Short_Description,VariableList); $Short_Description_Link = tdHeading("Short Description",Short_Description,VariableList); echo"
"; echo"
"; echo" "; $n=1; while($aData = mysql_fetch_array($rData)) { if($col == White) { $col = "#CCCCCC"; } else { $col = "White"; } $DetailShort_Description = nl2br($aData[Short_Description]); if(!empty($aData[Picture])) { $Image = ""; } else { $Image = ""; } echo" "; echo" "; $n++; } echo "
$Image Titolo: $aData[Title]
Descrizione: $aData[Short_Description]

Leggi...



$NextPrev

"; } include"footer.php"; ?>