All I can find trying to research this is the ubiquitous
Code: Select all
mysql_connect($hostname,$username,$password) OR die ("could not connect");What I'd like is a) a sensible message to the user and b) an email alert sent to the administrator. I think I can devise a clunky way to do this but can't help thinking there might be an elegant way to achieve it...
...but I'm afraid my PHP coding and the word 'elegant' don't sit easily together...;-(
John