function main() { echo "In main\n"; _make_conf(); // read conf $conf_file = './my_first.conf'; $conf = read_conf($conf_file); print "got conf\n"; // db connect //$dbh = db_connect($conf['database']); $dbh = new DBHandler($conf['database']); if ($dbh) { print "Connected to " . $dbh->get_host() . "\n"; } insert_department($dbh); get_all_departments($dbh); update_department($dbh); get_specific_departments($dbh); get_one_department($dbh); get_all_departments_two($dbh); delete_department($dbh); get_departments_keyed($dbh); }