this S H O U L D give you two different outputs depending on "id". But somehow I get the same output for all.
My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
Code:
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("poetry.mdb")
Set RS = Conn.Execute("Select * From personal order by ID")
Do While Not RS.EOF
%>
<% If Request.QueryString("id") <> RS("id") Then%> - <a href="poetry.asp?id=<%=RS("id")%>"><%=RS("title")%></a> -<br>
<% Else %> - <b>[ <%=RS("title")%> ]</b> - <br> <% End If %>
<hr width="95">
<%
RS.MoveNext
Loop
End If
RS.Close
Conn.Close
Set RS = Nothing
Set Conn = Nothing
I have absolutely no idea what I am talking about
Somehow I still manage to make it work