Oracle 5.0 Reference Manual page 2279

Table of Contents

Advertisement

current character set.
respect the current charset setting.
Parameters
unescaped_string
Return Values
Returns the escaped string.
Changelog
Version
5.3.0
4.3.0
Examples
Example 20.37.
<?php
$item = "Zak's Laptop";
$escaped_item = mysql_escape_string($item);
printf("Escaped string: %s\n", $escaped_item);
?>
The above example will output:
Escaped string: Zak\'s Laptop
Notes
See Also
mysql_real_escape_string
addslashes
The
magic_quotes_gpc
20.7.2.5.13.
mysql_fetch_array
Copyright 1997-2012 the PHP Documentation Group. [2230]
mysql_fetch_array
Fetch a result row as an associative array, a numeric array, or both
Original MySQL API (Mysql)
mysql_escape_string
Warning
This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature
is highly discouraged.
The string that is to be escaped.
mysql_escape_string
Note
mysql_escape_string
directive.
does not take a connection argument and does not
Description
This function now throws an E_DEPRECATED
notice.
This function became deprecated,
do not use this function. Instead, use
mysql_real_escape_string.
example
does not escape
and _.
%
2259

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents