Global variable

Results 1 to 2 of 2

Thread: Global variable

  1. #1
    Ed Guest

    Default Global variable

    In order to make my site easier to maintain i want to have the database path in some kind of global variable. I was just what the best way of doing this is, application variable? having it in an include file?<BR><BR>Any ideas....<BR><BR>Thanks<BR>Ed<BR>eddyboy@btinterne

  2. #2
    Join Date
    Dec 1969

    Default RE: Global variable

    put the database connection string into another file (ie., dbconn.asp) and then simply include that file in all other ASP files needing a DB connection!<BR><BR>whatever you do, do NOT put the connection in a session/application var. that would be bad. very bad. <BR><BR>hope that helps.

Posting Permissions

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