Loading... phpcms SQL get调用判断两个条件怎么写 {pc:get sql="SELECT * FROM cad_picdown WHERE username='$username' status='99' ORDER BY id DESC" num="8" } 请教下我要判断这两个条件该怎么写呢`username='$username' status='99'` 解决办法:上面少了个and 正确的写法: {pc:get sql="SELECT * FROM cad_picdown WHERE username='$username' and status='99' ORDER BY id DESC" num="8" } Last modification:September 21, 2022 © Allow specification reprint Like 如果觉得我的文章对你有用,请随意赞赏