") if len(arysplit(0)) > 0 then j = 1 else j = 0 end if for i=j to ubound(arysplit) t = i next t = t + 1 'create the page links 'Response.Write("TotalPages=" & t) if (t > 1) then sPageLinks = "Page: " i = 1 do while i <= t if (i = iSelPage) then sPageLinks = sPageLinks & "" & i & " " else sPageLinks = sPageLinks & "" & i & " " end if i = i + 1 loop pp = false if (iSelPage > 1) then iNewPage = iSelPage - 1 sPageLinks = sPageLinks & "<< Previous Page " pp = True end if if (iSelPage < t) then if pp then sPageLinks = sPageLinks & "| " end if iNewPage = iSelPage + 1 sPageLinks = sPageLinks & "Next Page >> " end if else sPageLinks = "" end if strOutput = arysplit(iPage - 1) strOutput = strOutput & sPageLinks PageHTML = strOutput End Function */ include 'init.php'; $Article = $_GET["article"]; //Database connection //include "dbconnection.php"; //update the read count $newsql = "update FeaturesSummary set ReadCount=ReadCount+1 where NewsID= " . $Article; $summrs= mysql_query( $newsql); //now open read only $newsql = "Select * from FeaturesSummary where NewsID= " . $Article; $summrs= mysql_query( $newsql); $summrec=mysql_fetch_object($summrs); if ($summrec->CoID > 0) { $bRelated = true; $sql = "Select * from FeaturesSummary where CoID = " .$summrec->CoID. " and NewsID != " . $Article; $relrs=mysql_query($sql); $RelNumMatches = mysql_num_rows($relrs); $sql = "Select * from SoftwareReviews where CoID = " . $summrec->CoID; $linkrs=mysql_query($sql); //echo $sql.mysql_error(); $LinkNumMatches = mysql_num_rows($linkrs); } else $bRelated = false; $messsql = "Select * from Message where Current = '1'"; $messrs=mysql_query($messsql); $NumAds = mysql_num_rows($messrs); $i = 0; ?>
Mozongo.com - Mobile Technology News And Reviews, Mozongoware.com - Mobile Software News and Reviews |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||