hholzgra Thu Oct 23 03:11:44 2003 EDT Modified files: /functable/lib dbconnect.php Log: set exit status to non-zero on errors, typo fix ... Index: functable/lib/dbconnect.php diff -u functable/lib/dbconnect.php:1.1 functable/lib/dbconnect.php:1.2 --- functable/lib/dbconnect.php:1.1 Fri Sep 20 07:31:27 2002 +++ functable/lib/dbconnect.php Thu Oct 23 03:11:44 2003 @@ -1,7 +1,7 @@ <?php $db = mysql_connect($dbhost, $dbuser, $dbpass); -if(! $db) { echo mysql_error(); exit; } -if(! mysql_select_db($dbname)) { echo mysq_error(); exit;} +if(! $db) { echo mysql_error(); exit(3); } +if(! mysql_select_db($dbname)) { echo mysql_error(); exit(3);} ?>
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php