]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/booking_functions.php
All database names are now 'back-ticked' and constant _MYSQL_PREFIX is wrapped. Partl...
[mailer.git] / inc / libs / booking_functions.php
index 44fda2dac0953bc7f0558cfd6aeb7b29b9c63809..78252fb5c85cde0b6b7fabacc7746530d5b3eb02 100644 (file)
@@ -47,7 +47,7 @@ function ADD_BOOKING_RECORD ($subject, $uid, $points, $mode) {
        } // END - if
 
        // Add record entry here
-       SQL_QUERY_ESC("INSERT INTO `"._MYSQL_PREFIX."_user_book` (`userid`,`subject`,`mode`,`points`) VALUES(%s,'%s','%s',%s)",
+       SQL_QUERY_ESC("INSERT INTO `{!MYSQL_PREFIX!}_user_book` (`userid`,`subject`,`mode`,`points`) VALUES(%s,'%s','%s',%s)",
                array($uid, $subject, $mode, $points), __FILE__, __LINE__);
 }