include_once "settings.php"; $pagetitle=""; #navigation settings setvar("st,next,previous"); if(empty($st)){$st=0;} if(empty($next)){$next=0;} if(empty($previous)){$previous=0;} $listnos=10; if($previous>0){$st=$st-($previous*$listnos);$previous=0;} if($next>0){$st=$st+($next*$listnos);$next=0;} if($st<0){$st=0;} #conditions $sql="from videolinks where 1=1 "; if(!empty($newscategory)){$sql.="and category='$newscategory' ";$pagetitle.=$categories[$newscategory];} if(!empty($newscountry)) { if(!empty($newscategory))$pagetitle.=" - "; $sql.="and country='$newscountry' "; $pagetitle.="Pravasi Video Links From ".$countries[$newscountry]; } elseif(!empty($newscategory))$pagetitle.=" - Pravasi Video Links"; #get total count $entries=mysqli_query($db,"select count(*) as cnt ".$sql); $tmp=mysqli_fetch_object($entries); $totcnt=$tmp->cnt; #actual query output $sql.="order by videoid desc "; $sql.=" limit ".$st.",".($listnos+1); $sql="select * ".$sql; $getvideos=mysqli_query($db,$sql); $cnt=mysqli_num_rows($getvideos); include_once "header.php"; ?>
| echo $vscript; ?> |
echo "$vtitle";
?>
if(adminaccess(0)) echo " VIDEO SETTINGS"; ?> |