include_once("include/main.inc.php"); if ($_SESSION['userId']=="") { $_SESSION[redirect_url]='question_listing.htm'; $_SESSION[session_message]='** You need to login to view this page.'; header("Location: login.htm"); exit; } mainHeader(); if($_REQUEST[main_category]!=''){ $red_arr=array(); $categoryLinks=$_REQUEST[main_category] . "," ; while(list($key,$val)=each($_GET)){ if(substr($key,0,6)=="subcat"){ $categoryLinks.=$val.","; $red_arr[]=$key."=".$val; } } $categoryLinks=substr($categoryLinks,0,-1); $finalCategory=GetFinalLinksAjx($categoryLinks); if(!empty($red_arr)){ $red_str="?main_category=".$_REQUEST[main_category]."&".implode("&",$red_arr); $red_str1="&main_category=".$_REQUEST[main_category]."&".implode("&",$red_arr); } } $start=$_REQUEST[start]; $pagesize=$_REQUEST[pagesize]; $start = (intval($start)<0 or $start=="")?0:$start; $pagesize = intval($pagesize)==0?$pagesize=10:$pagesize; if($finalCategory!=''){ $qry1="select * from tbl_answer_reply where forumID='$finalCategory' and topicID='0' and status='Y'"; $reccnt = mysql_num_rows(db_query($qry1)); $qry1.=" order by replyID desc limit $start, $pagesize"; $qry= db_query($qry1); $res222=getResult("tbl_forum_cat "," where forumID='$_REQUEST[forumID]'"); }else{ $reccnt=0; } ?>
|
| ||||||||||||||||||||||||||||||||