professional-sql-05-lib-db.php / php
<?php // database connection and schema constants define('DB_HOST', 'localhost'); define('DB_USER', 'username'); define('DB_PASSWORD', 'password'); define('DB_SCHEMA', 'WROX_DATABASE'); define('DB_TBL_PREFIX', 'WROX_'); // establish a connection to the database server if (!GLOBALS['DB'])) { mysql_close(
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.