a simple way to prevent it from crashing caused by a failed connection is to set it in fail state..... add this eg where you make the first connection attmpt so if the connection fails it runs this:
PHP Code:
set_fail_state("[Psychostats]Error in Psychostats DataBase on Startup!")
__________________