includes/dbal.php
changeset 203 acb9d021b860
parent 142 ca9118d9c0f2
child 205 62ee6685ad18
--- a/includes/dbal.php	Fri Nov 09 11:14:20 2007 -0500
+++ b/includes/dbal.php	Fri Nov 09 23:36:49 2007 -0500
@@ -140,7 +140,7 @@
     $this->query_backtrace = '';
     $this->num_queries = 0;
     dc_here('dbal: we\'re in, selecting database...');
-    $q = $this->sql_query('USE '.$dbname.';');
+    $q = $this->sql_query('USE `'.$dbname.'`;');
     if(!$q) $this->_die('The database could not be selected.');
     dc_here('dbal: connected to MySQL');
     $this->disable_errorhandler();