楼主想怎么个快?select * from table dclass='xx' and xclass='xxx' and key='xxxx'还是可以有选择的对这些项单项查?单项查 做个判断 哪些被选择了 再在查询页里 调相应的sql就行了不知道你是不是这个意思

解决方案 »

  1.   

    哈哈  看来只我看懂他的意思了
    select * from table  where $field_type = '".$class."' and Key_word = '".$key."'
      

  2.   

    呵呵,我看应该是搜索类的功能吧...查找一项:
    SELECT * FROM table_name WHERE col_name LIKE '%$keyword%' ORDER BY col_ID DESC查找多项: 
    SELECT * FROM table_name WHERE col_name LIKE '%$keyword%' and col_name2 LIKE 'keyword2' and col_name3 LIKE 'keyword3'ORDER BY col_ID DESC