snrtuemc 回复 leijinlong(提问者)换成sql()函数取数把
sql("数据库连接名","select 购入量 from 表 where 燃料 in ('"+$热源+"') and 年度 ('"+$年度+"')",1)
记得需要分隔符是',' 不然就就是
sql("数据库连接名","select 购入量 from 表 where 燃料 in ('"+replace($热源,",","','")+"') and 年度 ('"+replace($年度,",","','")+"')",1)