File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
system/application/arc/store Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,17 +67,17 @@ function createDBCon() {
67
67
return $ this ->addError (mysqli_error ($ db_con ));
68
68
}
69
69
$ this ->a ['db_con ' ] = $ db_con ;
70
- if (!mysqli_query ( $ db_con , "USE " . $ this ->a ['db_name ' ])) {
70
+ if (!mysqli_query ( $ db_con , "USE ` " . $ this ->a ['db_name ' ] . " ` " )) {
71
71
$ fixed = 0 ;
72
72
/* try to create it */
73
73
if ($ this ->a ['db_name ' ]) {
74
74
$ this ->queryDB ("
75
- CREATE DATABASE IF NOT EXISTS " . $ this ->a ['db_name ' ] . "
75
+ CREATE DATABASE IF NOT EXISTS ` " . $ this ->a ['db_name ' ] . "`
76
76
DEFAULT CHARACTER SET utf8
77
77
DEFAULT COLLATE utf8_general_ci
78
78
" , $ db_con , 1
79
79
);
80
- if (mysqli_query ( $ db_con , "USE " . $ this ->a ['db_name ' ])) {
80
+ if (mysqli_query ( $ db_con , "USE ` " . $ this ->a ['db_name ' ] . " ` " )) {
81
81
$ this ->queryDB ("SET NAMES 'utf8' " , $ db_con );
82
82
$ fixed = 1 ;
83
83
}
You can’t perform that action at this time.
0 commit comments