我有一个SQL记录集,我需要页面加载并自动将数据导出为XML文件。我不清楚要执行此操作的下一步。任何帮助,将不胜感激。谢谢。
<?php
$agreements2 = new WA_MySQLi_RS("agreements2",$sdpc_i,0);
$agreements2->setQuery("SELECT * from ((SELECT *,
concat('https://sdpc.a4l.org/agreements/',file_pdf) as
agreement_file_pdf,
concat('https://sdpc.a4l.org/agreements/',file_doc) as
agreement_file_doc FROM agreement_types where
agreement_types.category != 'Other') t1 left join (SELECT * FROM
agreement_vendor_types) t8 on (t1.agreement_typesID =
t8.agreement_typesID) left join (SELECT * from
clause_agreement_type) t2 on (t1.agreement_typesID =
t2.agreement_typesID or t2.agreement_type_vendorID =
t8.agreement_type_vendorID) left join (SELECT * from
contract_clauses) t3 on (t3.clauseID = t2.clauseID) left join
(select * from clause_obligation) t4 on (t4.clause_agreement_typeID
= t2.clause_agreement_typeID) left join (SELECT * from obligations)
t5 on (t5.obligationID = t4.obligationID) left join (SELECT * from
obligation_benchmark) t6 on (t4.clause_obligationID =
t6.clause_obligationID) left join (SELECT *, benchmarkID as
thebenchmarkID from benchmarks) t7 on (t6.benchmarkID =
t7.benchmarkID))");
$agreements2->execute();
?>