Author |
Topic  |
modifichicci
Average Member
  
Italy
787 Posts |
|
SnapperL
Starting Member
24 Posts |
Posted - 12 August 2006 : 12:34:16
|
here is the top of my file....
<!--#include file="config.asp"--> <!--#include file="inc_func_common.asp" --> <% '--------------------------------------------------- ' Gremlins Simple Slash MOD ' Simply displays the last intTopicCount topics ' From ForumID (Use ForumID = "ANY" for all Forums) '---------------------------------------------------
Const intTopicCount = 5 Const ForumID = 19 Const CharsToDisplay = 200
'------------ ' Get Topics '------------ strSql = "SELECT " strSql = strSql & strTablePrefix & "TOPICS.TOPIC_ID, " strSql = strSql & strTablePrefix & "TOPICS.T_SUBJECT, " strSql = strSql & strTablePrefix & "TOPICS.T_MESSAGE, " strSql = strSql & strTablePrefix & "TOPICS.T_DATE, " strSql = strSql & strTablePrefix & "TOPICS.T_AUTHOR, " strSql = strSql & strTablePrefix & "MEMBERS.MEMBER_ID, " strSql = strSql & strTablePrefix & "MEMBERS.M_NAME " strSql = strSql & " FROM ((" & strTablePrefix & "FORUM " strSql = strSql & "INNER JOIN " & strTablePrefix & "TOPICS ON " strSql = strSql & strTablePrefix & "FORUM.FORUM_ID = " strSql = strSql & strTablePrefix & "TOPICS.FORUM_ID) " strSql = strSql & "INNER JOIN " & strTablePrefix & "MEMBERS ON " strSql = strSql & strTablePrefix & "TOPICS.T_AUTHOR = " strSql = strSql & strTablePrefix & "MEMBERS.MEMBER_ID) " If ForumID <> "ANY" Then strSql = strSql & " WHERE " & strTablePrefix & "TOPICS.FORUM_ID = " & ForumID strSql = strSql & " ORDER BY " & strTablePrefix & "TOPICS.T_DATE DESC " Dim objConn, objRS Set objConn = Server.CreateObject("ADODB.Connection") objConn.Open strConnString Set objRS = objConn.Execute(TopSql(strSQL,SlashCount)) < |
This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums! |
 |
|
modifichicci
Average Member
  
Italy
787 Posts |
|
SnapperL
Starting Member
24 Posts |
Posted - 12 August 2006 : 15:17:39
|
that did the trick, can't believe I didn't see that Thanks guys....< |
This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums! |
 |
|
Topic  |
|