<% /* define a generic object */ class object {}; /* setup the configuration object */ $CFG = new object; $CFG->dbhost = "localhost"; $CFG->dbname = "AxessWS"; $CFG->dbuser = "axess"; $CFG->dbpass = "axe_mysql01"; /* connect to the database */ $connect = mysql_connect($CFG->dbhost,"$CFG->dbuser","$CFG->dbpass"); $db_connect = mysql_select_db("$CFG->dbname") or die(mysql_error()); global $connect; global $db_connect; %>