-function SQL_QUERY($sql_string, $F, $L)
-{
- global $link, $CSS, $CONFIG, $OK;
+function SQL_QUERY($sql_string, $F, $L) {
+ global $link, $CSS, $_CONFIG, $OK;
+
+ // Remove \t, \n and \r from queries they may confuse some MySQL version I have heard
+ $sql_string = str_replace("\t", " ", str_replace("\n", " ", str_replace("\r", " ", $sql_string)));
+
+ // Starting time
+ $querytimeBefore = array_sum(explode(' ', microtime()));