Can someone please tell me what I'm doing wrong with this DB.php code? I can't seem to use it to connect to a database. I can connect to the database using the conventional mysql_connect methods but when the following code executes it blanks out all output and I have no way of telling if it's been run. I also do not get any results back when trying to do a query.
<?php require_once '/usr/local/lib/php/DB.php'; //require_once 'DB.php'; $user = 'root'; $pass = 'divine'; $host = 'localhost'; $db_name = 'app'; $dsn = "mysql://$user:[EMAIL PROTECTED]/$db_name"; $db = DB::connect($dsn); if (DB::isError($db)) { die ($db->getMessage()); } $db->disconnect(); echo "\nDammnittt work you fargin fool"; ?>