SELECT u.fID,u.neirong,u.zhuti,u.leixing,u.Empty String,u.fMoney,u.fDate FROM yfx_fabu as u WHERE ::filter or (0=:useSearch) or (u.neirong LIKE :filter OR u.zhuti LIKE :filter OR u.leixing LIKE :filter)
::filter :useSearch :filter 作用是什么?
1
RIcter 2016-05-30 21:07:54 +08:00
PDO 的参数绑定吧
http://php.net/manual/en/pdo.prepare.php |
2
qhxin 2016-05-31 14:41:47 +08:00
一楼
|