'.$page_title.' Wallpapers'; // Show Subcategories $m=0; $query2 = "SELECT * FROM categories WHERE (rootid='".$arr[id]."' OR rootid2='".$arr[id]."' OR rootid3='".$arr[id]."')"; $query2 .= " ORDER BY name"; $res = mysql_query($query2) or die("LINE ".__LINE__.": ".mysql_error()); $m=0; if(mysql_num_rows($res)>0) { echo '
'; echo 'Subcategories for '.$page_title.' Wallpapers:'; //echo '

Subcategories for '.$page_title.' Wallpapers:

'; echo '
'; echo ''; echo '
'; echo '
'; } // Show Description if(!empty($arr[description])) { echo '
'; echo 'About '.$page_title.' Wallpapers:'; //echo '

About '.$page_title.' Wallpapers:

'; $arr[description] = eregi_replace("\n","
",$arr[description]); echo '

'.$arr[description].'

'; echo '
'; } //Show Gallery $resg = mysql_query("SELECT * FROM wallpapers WHERE category = ".$arr[id]) or die("ERROR ".__LINE__.": ".mysql_error()); $num = mysql_num_rows($resg); if(empty($_REQUEST['page'])) $_REQUEST['page'] = 1; $hits = 12; $start = ($_REQUEST['page']-1)*$hits; $sortOption = "datum DESC"; $query2 = "SELECT * FROM wallpapers WHERE category=".$id." ORDER BY ".$sortOption." LIMIT ".$start.",".$hits; $resg = mysql_query($query2) or die("LINE ".__LINE__.": ".mysql_error()); if($num>0) { echo '

'.$arr[name].' Wallpapers Gallery

'; echo '
'; ShowPages($num,$_REQUEST['page'],$hits); echo '
'; echo '
'; while($arg = mysql_fetch_array($resg)) echo ''.$arr[name].' '._WALLPAPERS.''."\n"; echo '
'; echo '
'; ShowPages($num,$_REQUEST['page'],$hits); echo '
'; } include("footer.php"); ?>