這時需要用到
mysql_real_escape_string($string)這個函數,http://tw2.php.net/manual/en/function.mysql-real-escape-string.php即可以順利存入。
但是這個函數最常被使用的情況是防止網站被SQL injection,基於會幫你檢查分號之類的功用可以做很好的防範。
mysql_real_escape_string($string)這個函數,http://tw2.php.net/manual/en/function.mysql-real-escape-string.php