Code Troubles

From: Date: Fri, 26 Apr 2002 16:20:32 +0000
Subject: Code Troubles
Groups: php.general 
Request: Send a blank email to php-general+get-94742@lists.php.net to get a copy of this message
Hi all, Im having trouble with this code, can anyone help? --- <?php // db.php $dbhost = "localhost"; $dbuser = "dancepo_db"; $dbpass = "database"; function dbConnect($db="dancepo_db") { global $dbhost, $dbuser, $dbpass; $dbcnx = @mysql_connect($dbhost, $dbuser, $dbpass) or die("The site database appears to be down."); if ($db!="" and !@mysql_select_db($db)) die("The site database is unavailable."); return $dbcnx; } ?> --- Cheers, Ian. --- Randum Ian DJ / Reviewer / Webmaster, DancePortal (UK) Limited ian@danceportal.co.uk http://www.danceportal.co.uk DancePortal.co.uk - Global dance music media

« previous php.general (#94742) next »