Пример кода
<?php
$item = "Zak's and Derick's Laptop";
$escaped_item = mysql_real_escape_string($item);
printf ("Escaped string: %s\n", $escaped_item);
?>Вышеописанный пример выдаст следующий результат:Escaped string: Zak\'s and Derick\'s Laptop
