I am trying to list 5 most commented news and order them by most commented. I am getting the following error...
No value given for one or more required parameters.
PHP Code:<%
Set objCommentedNews = Server.CreateObject("ADODB.RecordSet")
objCommentedNews.Open "SELECT TOP 5 N.N_ID, N.TITLE, Count(*) as TotalComments FROM NEWS N LEFT JOIN COMMENTS C on C.N_ID = N.N_ID GROUP BY N.N_ID, N.Title ORDER BY TotalComments DESC", objConn, 1, 3
Do While not objCommentedNews.EOF
%>



Reply With Quote
Bookmarks