#文章管理 public function adminArticle(){ $adminArticle=M("article"); $arr_seach=$this->seach($adminArticle,10,"篇文章","now desc","");//参数格式seach($db,$num,$page_header,$order,$where) ##按最早排序 if(!@empty($_POST['time']))…
首先是模糊查询的问题,开始时我使用如下条件:select * from user where name like '%#value#%'. 可是怎么也不行,好像还报错了.后来在网上找到了解决方法,就是使用$来代替#号. 1>写成: like '%$value$%' 就可以了,<!-- 模糊查询不能用#,#是用prepareStatement的?插入参数,$是文本替换 -->, 2>同时还找到另一个方法,但是那个方法我试了很久,就是不行,方法为: like '%' || #value…