Random News Topic when the page loads
if not Session("donotdo") = 1 then
SQLStr="SELECT TOP 10 * FROM ORArticles WHERE ORDER by MagID DESC"
Set RS=Server.CreateObject("ADODB.Recordset")
RS.Open SQLStr,Application("DBConn"),adOpenKeyset,adLockPe ssimistic,adCmdText
else
SQLStr="SELECT TOP 10 * FROM ORArticles WHERE ArticleID=" & Session("GlobalArticleID") & " ORDER by MagID DESC"
Set RS=Server.CreateObject("ADODB.Recordset")
RS.Open SQLStr,Application("DBConn"),adOpenKeyset,adLockPe ssimistic,adCmdText
end if
This code was already present, it only brings up the same article everytime, I want it to choose a random article every time the page is loaded. Is there something that can be added to the code to change articles??
Thanks
__________________
-----------------------------------------------------------
\"Don\'t follow someone who\'s not going anywhere\" John Mason
|