08-18-2012, 08:00 AM
Hi,
I have the same issue;
Error in query: SELECT 104628-database.odm_user.username FROM 104628-database.odm_user WHERE 104628-database.odm_user.id = 1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '104628-database.odm_user WHERE 104628-database.odm_user.id = 1' at line 1
Since this is on a hosted server, I am not able to change the database name.
I tried your solution to insert back tick
/** The name of the database for [OpenDocMan */
define('DB_NAME', '`104628-database`');
But this does not seem to work, as it give me following result;
"Getting settings failed: No database selected"
Tried to add back tick in the DB_NAME in odm-init.php
$db = mysql_select_db(`DB_NAME`, $GLOBALS['connection']);
And get following;
Warning: shell_exec() has been disabled for security reasons in /storage/content/28/104628/database/public_html/opendocman/odm-init.php on line 33
Getting settings failed: No database selected
Did I misunderstand the work around with back ticks?
Regards,
Sebastian
I have the same issue;
Error in query: SELECT 104628-database.odm_user.username FROM 104628-database.odm_user WHERE 104628-database.odm_user.id = 1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '104628-database.odm_user WHERE 104628-database.odm_user.id = 1' at line 1
Since this is on a hosted server, I am not able to change the database name.
I tried your solution to insert back tick
/** The name of the database for [OpenDocMan */
define('DB_NAME', '`104628-database`');
But this does not seem to work, as it give me following result;
"Getting settings failed: No database selected"
Tried to add back tick in the DB_NAME in odm-init.php
$db = mysql_select_db(`DB_NAME`, $GLOBALS['connection']);
And get following;
Warning: shell_exec() has been disabled for security reasons in /storage/content/28/104628/database/public_html/opendocman/odm-init.php on line 33
Getting settings failed: No database selected
Did I misunderstand the work around with back ticks?
Regards,
Sebastian