User Profile

Collapse

Profile Sidebar

Collapse
grahampvdm
grahampvdm
Last Activity: Dec 8 '10, 10:44 AM
Joined: Dec 5 '10
Location: Cape Town, South Africa
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thank you for the response, dlite922. I managed to figure it out so it all seems fine now. :)

    This is my code:
    Code:
    <?php
    
    header('Content-type: text/xml');
    
    // It will be called downloaded.pdf
    header('Content-Disposition: attachment; filename=".xml"');
    
    // connect to database
    $db_name = "database";
    $connection = mysql_connect("localhost",
    ...
    See more | Go to post

    Leave a comment:


  • grahampvdm
    started a topic How to have PHP create a XML file from 2 tables?
    in PHP

    How to have PHP create a XML file from 2 tables?

    I’m not the best PHP programmer in the world, but my boss has given me a fairly important task. What I need to do is write a PHP file, which takes data from 2 MySQL tables and then spits out a XML file with the data. The data is coming from the OpenCart ecommerce system.

    This is what I have so far:

    Code:
    <?php
    
    header('Content-type: text/xml');
    
    // It will be called digitalsushiitems.xml
    ...
    See more | Go to post
No activity results to display
Show More
Working...