$sql1?=?'SELECT?count(*)?FROM?u_goods?WHERE?title?LIKE?:title'; $query->bindValue(':title','%'.$search_kw.'%');
上面這樣做才是正確的
下面這樣是沒有數(shù)據(jù)的
$sql1?=?'SELECT?count(*)?FROM?u_goods?WHERE?title?LIKE?"%:title%"'; $query->bindValue(':title',$search_kw);