db's and includes

Results 1 to 2 of 2

Thread: db's and includes

  1. #1
    Join Date
    Dec 1969

    Default db's and includes

    is it possible to make a generic "include file" statement depending on a database?<BR><BR>example...<BR><BR>&#060;!--#include file="get this from database"--&#062;<BR><BR>i already have a generic page built except for the include statement... thanks in advance!

  2. #2
    Join Date
    Dec 1969

    Default RE: db's and includes

    Include file data is put into the page before any scripting is done, you can not modify which include file is going to be inserted. The best you could do is<BR><BR>If something = someanswer then<BR> &#060;!--#INCLUDE file="somefile"--&#062;<BR>else if something2 = someanswer2 then<BR> &#060;!--#INCLUDE file="somefile"--&#062;<BR>end if<BR><BR>each include file being a specific code block. But, you can not control which include file is included from the asp page

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts