拼接问题
拷贝sql贴出来,给你改
======
sql("FRDemo" ,"SELECT * FROM 订单 where 1=1 "+if(len($p_gj)=0,"" , " and 货主国家 in ('"+$p_gj+"')"),1)
sql("FRDemo","select * from 订单 WHERE 1=1"+IF(LEN($p_gj)==0,""," and 货主国家 in ('"+$p_gj++"')")+"",1)
参数为空查询全部
IF(len($p_gj)=0,sql(.......),sql(... 拼接in后面的))