老是报错,是一段用过的代码,数据库【sup_web】,字段【recordkey】、【qty】都存在,不知道为什么?
#44 mysql_select_db(sup_web); 
#54 $objPHPExcel->getActiveSheet()->setCellValue('B3', $line[recordkey]);
#54 $objPHPExcel->getActiveSheet()->setCellValue('E3', $line[qty]);Notice: Use of undefined constant sup_web - assumed 'sup_web' in F:\www\sup\materiel\bom_export.php on line 44
select (select count(*) from bom_son son where son.recordkey = fa.recordkey and son.ver = fa.ver) as soncnt, fa.recordkey, fa.qty from bom_fa fa where fa.code = 'OA52000006' and fa.ver = 'V1.0' order by fa.code
Notice: Use of undefined constant recordkey - assumed 'recordkey' in F:\www\sup\materiel\bom_export.php on line 54Notice: Use of undefined constant qty - assumed 'qty' in F:\www\sup\materiel\bom_export.php on line 57