<?php $cid = mysql_connect(DB_HOST,DB_USR,DB_PWD) or die ("I cannot open a connection to database. "); mysql_select_db(DB_NAME) or die("I cannot select the database!"); ?>
info at phpclasses dot org