html to csv

Discussion in 'PHP' started by ranacseruet, Mar 19, 2009.

  1. #1
    i have a html table. can it be converted to csv anyway using php code? Thanks
     
    ranacseruet, Mar 19, 2009 IP
  2. Stylesofts

    Stylesofts Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hello,

    We are confused? what do you mean u want to convert tables into CSV?
    We thought you wanted to put the records on the csv sheet?
    did you mean this?

    Regards,

    Stylesofts Developing Team
     
    Stylesofts, Mar 19, 2009 IP
  3. ranacseruet

    ranacseruet Peon

    Messages:
    302
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    no, I mean, currently I have all data on a html template. I want to grab it & convert to csv with php. hope now u understand... thanks
     
    ranacseruet, Mar 19, 2009 IP
  4. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes, just read through your data and output it in CSV format, which is perhaps the easiest structured data format in the world to write.

    Separate columns with commas. If a column contains a comma, wrap that column in double quotes. If a column contains double quotes, double them.

    Separate rows with CRLF.

    The first row can contain column labels.

    That's all there is to it.
     
    SmallPotatoes, Mar 19, 2009 IP
  5. Stylesofts

    Stylesofts Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hello,

    Sorry for late response, yes definately now you can chage html to csv..

    :)


    Regards,

    Stylesofts Developing Team
     
    Stylesofts, Mar 28, 2009 IP
  6. Stylesofts

    Stylesofts Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hello,

    Sorry for late response, yes definately now you can chage html to csv..

    :)


    Regards,

    Stylesofts Developing Team
     
    Stylesofts, Mar 28, 2009 IP