ok i have a weird probelm. i put this code to try to generate an include depending on the value in a database.
this code:
<% 'Create an ADO recordset object Set rsGuestbook = Server.CreateObject("ADODB.Recordset") 'Initialise the strSQL variable with an SQL statement to query the database strSQL = "SELECT tblComments.include, tblComments.Comments, tblComments.name, tblComments.nickname FROM tblComments WHERE tblComments.Veiw like '1' ORDER BY tblComments.order;" rsGuestbook.Open strSQL, adoCon response.Write("<!--#include file=""") response.Write(rsGuestbook("include")) response.write("""-->") %> |
its outputs nothing put when i go look at the source the following is in its place:
<!--#include file="1.asp"--> |
and thats what i wwant but the probelm is that it doesnt show the page i told it to include.
any help?