Seems like mysql_real_escape_string function is not working?
   mysql  Ver 14.5 Distrib 4.1.3a-beta, for Win95/Win98 (i32)

<?php
$originalstring = "Apostrophe's rock";
echo $originalstring, "<br>";
echo addslashes( $originalstring ), "<br>";
echo mysql_escape_string( $originalstring ), "<br>";
echo mysql_real_escape_string( $originalstring ), "<br>";
?>

Shows up in my browser as:

Apostrophe's rock
Apostrophe\'s rock
Apostrophe\'s rock

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to