Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loading the main page with out DB?

Status
Not open for further replies.

seefun

Technical User
Jan 14, 2004
3
US
Hello,

I'm maintainig a website built by someone else. Recently there was a problem with our DB and the website also couldn't be displayed because of that. I want to be able to display the site w/o the functionality of the DB. Can anybody give me some ideas of where I should start?

Thank you,
Seefun
 
[tt]If the site was dynamically built from the database you'll need it. For example, if the navigation menu is being displayed from tables you'll need the database.
else

you must build/code all Database-driven sections by hand

 
Not every thing on the page is built dynamically. The page consists of server side includes, so I can exclude the portion that calls for the DB. However I only want to do that if and when the DB is down, but I don't know how, I probably need an if statment?

Thanks,
Rahel
 
Have the script check for the database connection. If it is not present, then display a static message in it's place such as you are having technical difficulties and to check back later.

-Ron

We all play from the same deck of cards, it's how we play the hand we are dealt which makes us who we are. -Me

murof siht edisni kcuts m'I - PLEH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top