Location: PHPKode > scripts > Php AddressBook 2 > php-addressbook-2/open-db.php
<?
// Make a MySQL Connection
$cid = mysql_connect($host,$dbuser,$dbpwd);
if (!$cid) { print "ERROR: " . mysql_error() . "\n";    }
#select database to use
mysql_select_db("$dbname") or die(mysql_error());
?>
Return current item: Php AddressBook 2