From: Roland Häder Date: Thu, 19 Feb 2009 23:55:34 +0000 (+0000) Subject: Fix for broken SQL queries (all). Resolves #84 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3db876e775c0651ffdf15234f5d5c7a4eae4033c;p=mailer.git Fix for broken SQL queries (all). Resolves #84 --- diff --git a/inc/db/lib-mysql3.php b/inc/db/lib-mysql3.php index 0767c5f162..90db1da0b7 100644 --- a/inc/db/lib-mysql3.php +++ b/inc/db/lib-mysql3.php @@ -50,6 +50,9 @@ function SQL_QUERY ($sql_string, $F, $L) { // Starting time $querytimeBefore = array_sum(explode(' ', microtime())); + // Replace {!_MYSQL_PREFIX!} with constant, closes #84. Thanks to profi-concept + $sql_string = str_replace("{!_MYSQL_PREFIX!}", constant('_MYSQL_PREFIX'), $sql_string); + // Run SQL command //* DEBUG: */ echo $sql_string."
\n"; $result = mysql_query($sql_string, $link)