Prematurely ending execution of a program
Ending script execution.
Last updated at 01:39 PM on Wednesday 8th August, 2007 by Administrator
Exit upon failure of a process with an error message is very easy with php and can be done with die()[uk3.php.net]
mysql_connect($host, $user, $password)
or die("Connect to database failed");