php モールで複數(shù)條件のフィルタリングを行うにはどうすればよいですか?
複數(shù)の條件は通常、or ではなく and に関連します
條件はすべて URL を通じて渡され、PHP は get を通じて條件値を取得し、データベースから読み取ります
tpフレームワークの解決策
$where['條件フィールド1|條件フィールド2'] = array('like', "%queryKeyword%");
M('table')->where( $where )->select();
ネイティブ コード
select * from table name where field 1 like %queryKeyword%% or field 2 like %queryKeyword%