Questions about generating xml files in php (urgent)

Source: Internet
Author: User
Question about generating xml files in php (urgent) please help me. how can the following program generate xml files and read xml files? Foreach ($ forumsas $ k = & gt; $ v) {$ SQL = & quot; SELECT * FROM & quot ;. $ forum-& gt; _ prefix. $ forum-& gt; _ table _ php xml file generation (urgent)
Please help me. how does the following program generate xml files and read xml files?
Foreach ($ forums as $ k => $ v ){
$ SQL = "SELECT * FROM ". $ forum-> _ prefix. $ forum-> _ table_name. "WHERE parent_id = ". $ v ['forum _ id']. "order by post_cnt desc limit 0, 6 ";
$ Forums [$ k] ['mobiles'] = $ forum-> _ db-> fetchAll ($ SQL );
$ J_data = ($ forums [$ k] ['mobiles']);
Print_r ($ j_data );

Foreach ($ forums [$ k] ['mobiles'] as $ s => $ t ){
$ Prod_id = $ t ['prod _ id'];
$ SQL = "SELECT count (prod_id) FROM ". $ profileM-> _ prefix. $ profileM-> _ table_name. "WHERE prod_id = '". $ prod_id. "'group BY prod_id ";
$ Forums [$ k] ['mobiles'] [$ s] ['ucount'] = intval ($ profileM-> _ db-> fetchOne ($ SQL ));
}
}

------ Solution --------------------
Please describe the problem clearly. do you have to guess what you want first. And then help you solve the problem?
------ Solution --------------------
Foreach

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.