SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2002
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Export a table from a webpage into a text or csv file

    I'm trying to figure out how to export a table from a webpage into a text or csv file. I'm programming in PHP and using a MySQL database.

    Any help?

  2. #2
    Sidewalking anode's Avatar
    Join Date
    Mar 2001
    Location
    Philadelphia, US
    Posts
    2,205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Easy way: Use XSLT

    Hard way:Explode it on the <tr>'s, explode the results on <td>'s, write the file.
    TuitionFree a free library for the self-taught
    Anode Says... Blogging For Your Pleasure

  3. #3
    SitePoint Enthusiast
    Join Date
    Apr 2002
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by anode
    Easy way: Use XSLT

    Hard way:Explode it on the <tr>'s, explode the results on <td>'s, write the file.
    Any more help???


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •