日期:2014-05-17 浏览次数:20500 次
$query = "SELECT id,title FROM `test` WHERE `title` LIKE '%\'%' OR `title` LIKE '%\"%'";
$query = mysql_query($query);
while($res =mysql_fetch_assoc($query)){
$title = stripslashes($res['title']);
$sql ="UPDATE `test` SET `title`={$title} WHERE id=$res['id']";
mysql_query($sql);
}