session_start(); include("includes/config.php"); $pagenum=$_GET['pagenum']; $catid=$_GET['catid']; $c=mysql_fetch_array(mysql_query("select * from categories where catid='$catid'")); $titlecat=$c['catname']; $catdesc = $c['catdesc']; $titlecat="- ".$titlecat; if($pagenum!="") { $pagenum=$pagenum; } else { $pagenum=0;} $sql="select * from poetry where catid='$catid' and status='Active' order by title"; $mysql=mysql_query($sql); $total_rows=mysql_num_rows($mysql); $rows_limit=15; $sql.=" LIMIT $pagenum,$rows_limit"; $mysql=mysql_query($sql); $total_page=ceil($total_rows/$rows_limit); $page_next=$pagenum+$rows_limit; $page_prev=$page_next-2*$rows_limit; $show_rows=0; include("templates/header.php"); ?>
include("templates/leftbar.php");?> |
if($catdesc){?> echo nl2br($catdesc)?> }?>
|
include("templates/rightbar.php");?> |