PHP: mysql_real_escape_string?

§cott™

New member
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.
 
Back
Top