Hi all
Need some help with this1
i have made recordset for news on main page.
<%
Dim news
Dim news_numRows
Set news = Server.CreateObject("ADODB.Recordset")
news.ActiveConnection = MM_artek_STRING
news.Source = "SELECT * FROM news_"& Session("lang") + " ORDER BY ID DESC"
news.CursorType = 0
news.CursorLocation = 2
news.LockType = 1
news.Open()
news_numRows = 0
%>
The thing is, I have mulitlanguage page therefor I have some problems
with writing right recordset in detail page. (Table names in db:
news_si and news_en)
Detail page recordset:
<%
Dim news
Dim news_numRows
Set news = Server.CreateObject("ADODB.Recordset")
news.ActiveConnection = MM_artek_STRING
news.Source = "SELECT * FROM news_"& Session("lang")
don't know what to write here exactly
news.CursorType = 0
news.CursorLocation = 2
news.LockType = 1
news.Open()
news_numRows = 0
%>
Now what I would like is, that once you click on the news ( let say
ID=4) to go to news.asp?ID=4, but when i click the link, it goes
to ID=1.
At the moment I add 4 news. On main page I only display last news, on the news page all news are displayed.
Also in news.asp page, where all news links alre dispalyed it will go to ID=1.
I think I should right somethin for URL parameters, but I just dont know how.
Thanks,