select * from where     or

解决方案 »

  1.   

    如果全部为空则不执行。
    if (edit1.text != "" or edit2.text != "" or.........edit15.text != "")
    {
        select * from yourtable where condition1 = edit1.text or condition2 =         edit2.text or ......condition15 = edit15.text
    }
      

  2.   

    else
    return;我的是C里面的语法。。你改成PHP专用的。。估计就差不多了~~
      

  3.   

    1-------if (edit1.text != "" ){
        cond1 = "cond1 = '".cond1."'";
    }else{
        cond1 = "1";
    }
    if (edit2.text != "" ){
        cond2 = "cond2 = '".cond2."'";
    }else{
        cond2 = "1";
    }.....
    strsql = "select .... where ".cond1." or ".cond2.".......
      

  4.   

    strsql = "select .... where ".cond1." and ".cond2.".......