Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - REQ: Archive Topics by Year Month
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

REQ: Archive Topics by Year Month

 Post Reply Post Reply
Author
myhyipforum.com View Drop Down
Newbie
Newbie
Avatar

Joined: 13 April 2006
Location: East Timor
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote myhyipforum.com Quote  Post ReplyReply Direct Link To This Post Topic: REQ: Archive Topics by Year Month
    Posted: 26 December 2006 at 3:34pm
<% @ Language=VBScript %>

<% Option Explicit %>

<!--#include file="common.asp" -->

<%

'Set the response buffer to true

Response.Buffer = True



dim str_subject

dim str_subject_2

dim int_archive_year

dim int_archive_month



int_archive_year = cInt(request.QueryString("year"))

int_archive_month = cInt(request.QueryString("month"))

%>



<html>

<head>

<title>Archives <%

if int_archive_month = 1 then

response.Write(" January ")

elseif int_archive_month = 12 then

response.Write(" December ")

end if

response.Write int_archive_year

%></title>

</head>

<body>



<p>

<a href="default.asp">Home</a>

</p>



<ol>



<%



strSQL = _

"SELECT " & strDbTable & "Topic.subject, " & strDbTable & "Topic.Topic_ID " & _

"FROM " & strDbTable & "Topic" & strDBNoLock & " " & _

", " & strDbTable & "Thread" & strDBNoLock & " " & _

"WHERE " & strDbTable & "Topic.Topic_ID = " & strDbTable & "Thread.Topic_ID " & _

"AND month(" & strDbTable & "Thread.Message_date) = " & int_archive_month & " " & _

"AND year(" & strDbTable & "Thread.Message_date) = " & int_archive_year & " " & _

"ORDER BY " & strDbTable & "Topic.Topic_ID " & _

" ; "



'Query the database

rsCommon.Open strSQL, adoCon

do while NOT rsCommon.EOF

str_subject = rsCommon.fields(0).value

if str_subject <> str_subject_2 then



response.Write("<li>" & _

str_subject & "</li>")



str_subject_2 = str_subject

end if

rsCommon.movenext

loop

rsCommon.close

%>

</ol>
</body>
</html>

<%
'Reset server objects
set rsCommon = NOTHING
Call closeDatabase()
%>


Back to Top
gölge View Drop Down
Groupie
Groupie


Joined: 16 April 2005
Location: Turkey
Status: Offline
Points: 182
Post Options Post Options   Thanks (0) Thanks(0)   Quote gölge Quote  Post ReplyReply Direct Link To This Post Posted: 28 December 2006 at 3:38am
req? Stern%20Smile
 
 
 
_____________________________________________________________________________________________________
THE ARMENIANS SAY THEY WERE MURDERED BUT DOCUMENTS TELL DIFFERENT. THE DOCUMENTS ARE FULL OF WOMEN,
BABIES AND CHILDREN PHOTOS THAT RAPED,KILLED AND BURNED WILDLY BY ARMENIAN TERRORISTS.
PLEASE VISIT www.tallarmeniantale.com AND SEE THE TRUTH.
_____________________________________________________________________________________________________
Back to Top
kkimber View Drop Down
Newbie
Newbie


Joined: 05 April 2006
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote kkimber Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2007 at 9:25am
napmış bu denyo kafalı ya, çalışmadı. sen çalıştırabildinmi gölge (<- güzel mod insanı) :-)
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.