What does this mean and how do I fix it? My site has been really slow for the last ten minutes or so and now I have this error on a white screen. Please help, I'm panicking.
Edit: I've just managed to load a page but it's so slow I could brew a cup of tea while it's loading one page....
Warning: mysql_real_escape_string() expects parameter 2 to be resource, boolean given in /home/content/28/7418528/html/sabrinova/Sources/Subs-Db-mysql.php on line 139.
Line 139 is the one with sprintf in it:
if (!is_numeric($replacement) || (string) $replacement !== (string) (int) $replacement)
smf_db_error_backtrace('Wrong value type sent to the database. Integer expected. (' . $matches . ')', '', E_USER_ERROR, __FILE__, __LINE__);
return (string) (int) $replacement;
return sprintf('\'%1$s\'', mysql_real_escape_string($replacement, $connection));