ThinkPHP5.1 where多条件查询
if ($keyword) {
if ($sotype == "id") {
$where[$stype] = $keyword;
} else {
$where = [
['title', 'like', "%" . $keyword . "%"],
];
}
}
$where['level'] = 1;
当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »