$db->query();
class Blizz { var $blizz; } //set the function $this->connection = $resource; ($resource = mysql_connect()); function query($query) { $resource = mysql_query($query, $this->connection); if (!$resource) { $this->debug_query($query); } return $resource; } $db = new Blizz($dbhost, $dbuser, $dbpass, $dbname);
$dbhost $dbuser $dbpass $dbname