§ §cott™ New member Nov 18, 2009 #1 mysql_real_escape_string() requires a active database connection for it to function. Can it be substituted with this: str_replace(array('\x00', '\n', '\r', '\', "'", '"', '\x1a'), '', $value); ? Or would a dummy connection work? I assumed that.
mysql_real_escape_string() requires a active database connection for it to function. Can it be substituted with this: str_replace(array('\x00', '\n', '\r', '\', "'", '"', '\x1a'), '', $value); ? Or would a dummy connection work? I assumed that.