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 );
------ Solution --------------------
Please describe the problem clearly. do you have to guess what you want first. And then help you solve the problem?
------ Solution --------------------
Foreach
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.