damonlee3 Posted December 24, 2006 Share Posted December 24, 2006 Hello,I'm trying to have an existing csv text file display in a formatted manner. II have no problem displaying the file using php, but i want it to be formatted, i.e., spaced, fonts, etcexamplefruit,red,apple,cart tree,maple,shade,coolformatted tofruitred apple carttreemaple shade coolI'm doint this without a database.any ideas? Link to comment https://forums.phpfreaks.com/topic/31785-format-and-display-a-csv-txt-format/ Share on other sites More sharing options...
Barand Posted December 25, 2006 Share Posted December 25, 2006 Use fgetcsv() to read each line into an array then[code]echo array[0], '<br>';echo array[1], ' ', array[2], ' ', array[3], '<br>';[/code] Link to comment https://forums.phpfreaks.com/topic/31785-format-and-display-a-csv-txt-format/#findComment-147419 Share on other sites More sharing options...
damonlee3 Posted December 25, 2006 Author Share Posted December 25, 2006 Thank you. I thinks this is going to do it for me....Merry Christmas! Link to comment https://forums.phpfreaks.com/topic/31785-format-and-display-a-csv-txt-format/#findComment-147459 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.