PHP/Language Basics/Exit
Stopping Page Execution
<source lang="html4strict">
<?php
$db_conn = mysql_connect ("imaginaryhost", "wbex", "password"); // If no db connection, exit script if(!$db_conn) { print("I could not connect to the database! :(
"); print("This script will now exit
"); exit; } mysql_close($db_conn);
?>
</source>