mysql_select_db needs `` marks around database name.
quinncomendant opened this issue · 1 comments
quinncomendant commented
Currently, mysql_select_db
fails if the database name contains a dash, e.g., my-db
. To support database names with symbols in the name, line 188 in MySQL.php needs to be changed from this:
return $this->mysql_query("USE {$databaseName}", $link);
to this:
return $this->mysql_query("USE `{$databaseName}"`, $link);
AzizSaleh commented
Good idea!