I have a script that returms some data from a mysql database and displays it as javascript which is then accessed by an html page. Is there a way to get php to return some javascript rather than the error message if the database is down? I have tried if!$link but it returns my javascript and the error.
Cheers
themoron :@)