尝试从我的网站运行脚本时出现错误。该脚本将从数据库导出到PDF文件。
exportcsv.php
$sql1 = "SELECT di.company,
(SELECT corp_add from data_corp where corp_loc='$location_corp' ) as alamat ,
(SELECT SUM(total) from data_inv where location='$location_corp' ) as total,
(SELECT sla from data_corp where corp_loc='$location_corp' ) as sla
FROM data_inv di
LEFT JOIN data_corp dc ON (di.company = dc.corp_name AND di.location = dc.corp_loc)
WHERE di.company = '$company'
AND di.downtime >= '$from_date'
AND di.uptime <= '$until_date'
GROUP BY dc.corp_name, dc.corp_loc";
此代码行中的以下错误
$result1 = mysql_query($sql1);
$row = mysql_fetch_assoc($result1);
请帮助,任何回答,我都会感激 谢谢 。