我写的代码:$in=mysql_query("insert into table ('title','content') values ('$_POST[title]','$_POST[content]')");但是如果插入 一般的文章,新闻都是可以的,但是如果插入一些代码,比如内容为:function relative_to_absolute($content, $feed_url) { 
preg_match('/(http|https|ftp):\/\//', $feed_url, $protocol); 
$server_url = preg_replace("/(http|https|ftp|news):\/\//", "", $feed_url); 
$server_url = preg_replace("/\/.*/", "", $server_url); 
 
这种的,因为中间有单引号,双引号,所以才会出错 ,这种的怎么解决,那们高手指点一下。