Skip to content
Snippets Groups Projects
Commit ccfc84e6 authored by Marius Cramer's avatar Marius Cramer
Browse files

- Fixed missing quotes on db selection

parent b8cdf90f
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ class db extends mysqli
$this->_sqlerror('Zugriff auf Datenbankserver fehlgeschlagen! / Database server not accessible!');
return false;
}
if(!((bool)mysqli_query( $this->_iConnId, "USE $this->dbName"))) {
if(!((bool)mysqli_query( $this->_iConnId, 'USE `' . $this->dbName . '`'))) {
$this->close();
$this->_sqlerror('Datenbank nicht gefunden / Database not found');
return false;
......
......@@ -86,7 +86,7 @@ class db extends mysqli
$this->_sqlerror('Zugriff auf Datenbankserver fehlgeschlagen! / Database server not accessible!');
return false;
}
if(!((bool)mysqli_query( $this->_iConnId, "USE $this->dbName"))) {
if(!((bool)mysqli_query( $this->_iConnId, 'USE `' . $this->dbName . '`'))) {
$this->close();
$this->_sqlerror('Datenbank nicht gefunden / Database not found');
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment