i have a link on page1 that looks like this:
on page2.asp i have this code:Code:<a href="page2.asp?ID=<% Response.write(oRes01.Fields.Item("ID").Value)%>"><% Response.write(oRes01("description")) %></a>
this gives me an error:Code:Set oRes01 = Conn.Execute("SELECT * FROM product WHERE ID = " + Replace(rs_oRes01__ColParam, "'", "''") + " ")
Syntax error (missing operator) in query expression 'ID ='.
what i want is to get the ID number from page1.asp to get in the ID number in the SQL query on page2.asp
anybody know why i get this error?
what does this code really do:
+ Replace(rs_oRes01__ColParam, "'", "''") + " ")