Generating an XML table from mysql database using CodeIgniter

General Tech Bugs & Fixes 3 years ago

1.49K 1 0 0 0

User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 3 years ago

What is wrong with this code inside html (Codeigniter view). It is supposed to generate an xml file from database sales invoice information.

php
    $this->load->helper('xml');
    $this->load->dbutil();
    $this->load->helper('file'); 
    $this->load->database();

    $report = $query = $this->db->get('invoices_salesvan_warehouse');
    $new_report = $this->dbutil->xml_from_result($report);
    write_file(‘xml_file.xml’,$new_report); 
0 views
0 shares

No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Similar Forum