【发布时间】:2014-10-05 12:47:18
【问题描述】:
我今天尝试将双引号转换为单引号时有点卡住了。
我知道了:
$string=" WHERE news_cat='$catid' AND news_title LIKE '%$searchnews%'";
我这样做了,但没有用:
$string = ' WHERE `news_cat` = \'' . $catid . '\' AND `news_title` LIKE '%$searchnews%'';
【问题讨论】: