Welcome to the Cookbook

loading...

4.2.3 escape

escape(string $string, string $connection)

Used to escape SQL statements by adding slashes, depending on the system's current magic_quotes_gpc setting. $connection is the name of the database to quote the string for, as named in your app/config/database.php file.