Ben Phelps Posted July 26, 2007 Share Posted July 26, 2007 I need a good way to store data for each day, but it needs to be accessed easily. data 1 - 125478 data 2 - 123549 Those numbers would change each day, and i need to store that value for each day. It would be kinda like a stats archive. I would need to refer back as far as one year from the first date. Is there an easy way to do this? Link to comment https://forums.phpfreaks.com/topic/61774-data-storage/ Share on other sites More sharing options...
deadimp Posted July 26, 2007 Share Posted July 26, 2007 There are a lot of options you have. Some of them are: > Store in simple text, with explode() and implode() > Store in XML, parse/generate it with SimpleXML or something like that > Store the data using MySQL or other db software Link to comment https://forums.phpfreaks.com/topic/61774-data-storage/#findComment-307596 Share on other sites More sharing options...
Ben Phelps Posted July 26, 2007 Author Share Posted July 26, 2007 I would be storing hundreds of thousands of entry's that would each be updated every day, so it would need to be MySQL, but i need a simple way to store that in MySQL. I just don't know how to store that data so it can be accessed to create a graph or plot a chart. Link to comment https://forums.phpfreaks.com/topic/61774-data-storage/#findComment-307600 Share on other sites More sharing options...
teng84 Posted July 26, 2007 Share Posted July 26, 2007 to create a bar graph heres my idea hmmm.. get the total of the record say group by male the the number you will get will be the hight of the image or etc you will use does that make sense Link to comment https://forums.phpfreaks.com/topic/61774-data-storage/#findComment-307609 Share on other sites More sharing options...
Ben Phelps Posted July 26, 2007 Author Share Posted July 26, 2007 i think i figured it out. each data set will have its own table i will use a unix timestamp to make the time and i will update it every hour then all i have to do is a loop to get the data for a graph and whatnot is there a better way to do this ? Link to comment https://forums.phpfreaks.com/topic/61774-data-storage/#findComment-307616 Share on other sites More sharing options...
teng84 Posted July 26, 2007 Share Posted July 26, 2007 yes and maybe no no need for the loop do you know the group by clause of sql thats better Link to comment https://forums.phpfreaks.com/topic/61774-data-storage/#findComment-307617 Share on other sites More sharing options...
deadimp Posted July 26, 2007 Share Posted July 26, 2007 This question might be better answered if it were in the MySQL forum. I'm not sure I can contribute anything else to this. Link to comment https://forums.phpfreaks.com/topic/61774-data-storage/#findComment-307626 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.