OK I think I am getting through this but I am a little stuck in one spot here.
I have this code to display what is in the database as Forum Version this is the code:
if MyVersion = "0" or MyVersion = "" then
Response.Write "N/A"
else
strSql = "SELECT F_VERSION "
strSql = strSql & "FROM " & strTablePrefix & "FILEVERSION "
strSql = strSql & "WHERE ID IN (" & MyVersion & ")"
Set rsY = my_Conn.Execute (strSql)
rsY.MoveFirst
while not rsY.EOF
Response.Write rsY("F_VERSION") & "<br />"
rsY.MoveNext
wend
rsY.Close
end if
strSql = "SELECT FC.ID, FC.F_CAT, COUNT(FF.ID) AS CountOfID "
strSql = strSql & "FROM " & strTablePrefix & "FILECAT FC "
strSql = strSql & "LEFT JOIN " & strTablePrefix & "FILEMANAGER FF "
strSql = strSql & "ON FC.ID = FF.F_CAT "
strSql = strSql & "GROUP BY FC.F_CAT, FC.ID"
I want to take the forum version which in the database is called Free and put it into the above statement.
if strSql = "SELECT F_VERSION "
strSql = strSql & "WHERE ID IN = Free"
then
strSql = "SELECT FC.ID, FC.F_CAT, COUNT(FF.ID) AS CountOfID "
strSql = strSql & "FROM " & strTablePrefix & "FILECAT FC "
strSql = strSql & "LEFT JOIN " & strTablePrefix & "FILEMANAGER FF "
strSql = strSql & "ON FC.ID = FF.F_CAT "
strSql = strSql & "GROUP BY FC.F_CAT, FC.ID"