'; } else if ($row["vtype"] == "2") { $vcode1 = explode("?v=", $row["vcode"]); $vfullurl = ''; } else if ($row["vtype"] == "3") { $vfullurl = '' . $row["vcode"] . ''; } } } } else { if ($cat != "") { $sql = "SELECT id, title_" . $fieldsurfix . " AS title, vtype, vcode FROM tbl_jeyadurgha_videos WHERE cat='$cat' AND status=1 ORDER BY disorder ASC LIMIT 0,1"; $result = @mysql_query($sql); if (mysql_affected_rows()!=0) { $reccount = 0; while ($row = mysql_fetch_array($result)) { $vid = $row["id"]; $vtitle = $row["title"]; if ($row["vtype"] == "1") { $vfullurl = ''; } else if ($row["vtype"] == "2") { $vcode1 = explode("?v=", $row["vcode"]); $vfullurl = ''; } else if ($row["vtype"] == "3") { $vfullurl = '' . $row["vcode"] . ''; } } } } } ?>
1) { $pgno = $pgno; } $sql = "SELECT count(id) as totrecs FROM tbl_jeyadurgha_videocats ORDER BY disorder ASC"; $result = @mysql_query($sql); if (mysql_affected_rows()!=0) { while ($row = mysql_fetch_array($result)) { $totrecs = $row['totrecs']; } } $totpages1 = $totrecs/10; if ($totrecs == ($totpages1*10) || $totrecs < ($totpages1*10) ) { $totpages = $totpages1; } else if ($totrecs > ($totpages1*10) ) { $totpages = $totpages1 + 1; } ?>
<? echo $row['title']; ?>
.
.
 
 
($totpages1*10) ) { $totpages = $totpages1 + 1; } if ($pgno == 1) { $sql = "SELECT *, title_" . $fieldsurfix . " AS title FROM tbl_jeyadurgha_videocats ORDER BY disorder ASC LIMIT 0, 15"; } else if ($pgno > 1 ) { $sql = "SELECT * FROM tbl_jeyadurgha_videocats ORDER BY disorder ASC LIMIT " . ($pgno-1) * 15 . ", 15"; } $result = @mysql_query($sql); if (mysql_affected_rows()!=0) { ?>
<? echo $row['title']; ?>
 
<? echo $row['title']; ?>