connection problem with various directory level
hi
i have a connection problem with various directory level.
the parent path option is enabled on my server. and i have my database in the db folder
which is outside the wwwroot.
now i have files in directory levels like below.
db/db.mdb
wwwroot/include/connection.asp
wwwroot/default.asp
wwwroot/news/default.asp
wwwroot/news/pressRelease/default.asp
in the connection string i am specifing dp path as ../../db/db.mdb
this works in all asp files which are in the same level of connection.asp
but i need to include connection.asp in news/pressrelease/default.asp
how can this be impemented. also how can i put the connection file in
the db folder itself and include it in all subfolder files in the root?
please help
neon
|