迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
我用sql查询数据,其中有一个查询条件是变量,请问下该如何调出变量值 呢,cms的sql语句必须在单引号中使用
{php $sql='SELECT * FROM dr_1_xiutu where "$titles" ORDER BY updatetime DESC'}
各位大神,求帮助
$sql='SELECT * FROM dr_1_xiutu where title like "%$titles%" ORDER BY updatetime DESC'
{php $sql=urlencode('SELECT * FROM dr_1_xiutu where title like "%$titles%" ORDER BY updatetime DESC');} {sql sql='$sql'}
SQL: SELECT * FROM dr_1_xiutu where title like "%$titles%" ORDER BY updatetime DESC
{php $sql=urlencode('SELECT * FROM dr_1_xiutu where title like "%'.$titles.'%" ORDER BY updatetime DESC');} {sql sql='$sql'}