SQL("newhope_imp","select companyco from user_name where username = '" +fr_username+"'" + "order by companyco",1,1) 这样设置没有问题可以 但是加了判断后,它的默认下拉框的值就不会出现了。请问如下的写法错误在哪里,要如何改,谢谢 SQL("newhope_imp","select companyco from user_name where 1=1"+ if(fr_username="'liushan'"||fr_username="'zutao'","","and username = '"+$fr_username+"'")+" order by companyco",1,1) |