cvs: functable /lib dbconnect.php

From: Date: Thu, 23 Oct 2003 07:11:44 +0000
Subject: cvs: functable /lib dbconnect.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-24222@lists.php.net to get a copy of this message
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);} ?>

« previous php.cvs (#24222) next »