Jump to content

BruceFarmerson

New Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by BruceFarmerson

  1. I have several xml files in a folder on my webserver. I want to 1. look in the folder 2. get xml file names 3. put file names into array 4. loop those names into a mysql query 5. have contents of all xml files inserted into db $files = glob('*.xml'); foreach($files as $file){ mysql_query("LOAD DATA INFILE '".$file."' INTO TABLE tablename ROWS IDENTIFIED BY ''"); } I've spent a couple of days looking for an example or tutorial but can't find anything online. Above is the best I can come up with. Any help appreciated
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.