stinhambo Posted July 5, 2006 Share Posted July 5, 2006 Hi there,I am working on a tourism based website. They run tours with varying times based on the month of the year.So basically I need to create a flat file with various timetables (about 7) which will hold the month and about 4 times of the day - Here is an example of one of the timetables -November 10.00am 12.00pm 14.00pm 16.00pmI want to be able to retrieve the timetable from a flat file based on the server date so if the SERVER date is November then the timetable above will be pulled and entered into a table.I've had a look at serialisation and fopen but I can't quite get my head around it..Thanks for any help in advance! Quote Link to comment https://forums.phpfreaks.com/topic/13691-retrieving-some-tabular-data-from-a-flat-file/ Share on other sites More sharing options...
trq Posted July 5, 2006 Share Posted July 5, 2006 Any reason why your not using a database? Quote Link to comment https://forums.phpfreaks.com/topic/13691-retrieving-some-tabular-data-from-a-flat-file/#findComment-53122 Share on other sites More sharing options...
stinhambo Posted July 5, 2006 Author Share Posted July 5, 2006 [quote author=thorpe link=topic=99465.msg391695#msg391695 date=1152062007]Any reason why your not using a database?[/quote]Seems a bit overkill to set up a MySQL database just to store something so simple or is it? Quote Link to comment https://forums.phpfreaks.com/topic/13691-retrieving-some-tabular-data-from-a-flat-file/#findComment-53132 Share on other sites More sharing options...
cmgmyr Posted July 5, 2006 Share Posted July 5, 2006 It might be overkill right now, but what if later you wanted to add more data, atleast in MySQL you can easily upgrade your tables to hold more data without messing with too much. Also MySQL is a LOT easier then messing around with flat files...IMO.-Chris Quote Link to comment https://forums.phpfreaks.com/topic/13691-retrieving-some-tabular-data-from-a-flat-file/#findComment-53133 Share on other sites More sharing options...
trq Posted July 5, 2006 Share Posted July 5, 2006 Databases are made for querying data. In the long run, if you want to sort, then a db is probably a better option. MySql overkill? Maybe use sqlite? Quote Link to comment https://forums.phpfreaks.com/topic/13691-retrieving-some-tabular-data-from-a-flat-file/#findComment-53138 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.