mysql_escape_string

PHP 4 >= 4.0.3, PHP 5
mysql_escape_string - Escapes a string for use in a mysql_query
Manual
Code Examples

Example #1 mysql_escape_string example

Result: Escaped string: Zak\'s Laptop
PHP Version: