时间:2021-07-01 10:21:17 帮助过:20人阅读
$query = "SELECT id,title FROM `test` WHERE `title` LIKE '%\'%' OR `title` LIKE '%\"%'";php 数据库 分享到:
$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);
}