I have an ASP page that is passed two variables: "strCat" for table name and "id" for article ID in the database. I want to display the contents of the database in a HTML table based on the two variables. I want to execute a SQL statment like this:
sqlstatement = SELECT * FROM strCat WHERE article_id = id
set rs=Server.CreateObject("ADODB.recordset")
rs.open sqlstatment
For the sql statment, can someone show me where to put the commas in the correct places? thanks.
sqlstatement = SELECT * FROM strCat WHERE article_id = id
set rs=Server.CreateObject("ADODB.recordset")
rs.open sqlstatment
For the sql statment, can someone show me where to put the commas in the correct places? thanks.
