jadeg Posted March 20, 2014 Share Posted March 20, 2014 I have a php script that gets value from a csv file and produces a html table from the file. I want the table to auto refresh every one minute by changing the values in the csv file. any ideas how I go about that? Link to comment https://forums.phpfreaks.com/topic/287124-auto-refresh/ Share on other sites More sharing options...
requinix Posted March 20, 2014 Share Posted March 20, 2014 Use Javascript to trigger a refresh. window.setTimeout(function() { document.location.reload(); }, 60000); Link to comment https://forums.phpfreaks.com/topic/287124-auto-refresh/#findComment-1473354 Share on other sites More sharing options...
jadeg Posted March 20, 2014 Author Share Posted March 20, 2014 The csv file is not being updated I want to update the values to change by +10% Link to comment https://forums.phpfreaks.com/topic/287124-auto-refresh/#findComment-1473358 Share on other sites More sharing options...
requinix Posted March 20, 2014 Share Posted March 20, 2014 Then make your code change the values. Is that the part you don't know how to do? Link to comment https://forums.phpfreaks.com/topic/287124-auto-refresh/#findComment-1473365 Share on other sites More sharing options...
jadeg Posted March 20, 2014 Author Share Posted March 20, 2014 yes that's the part I do not know who to do Link to comment https://forums.phpfreaks.com/topic/287124-auto-refresh/#findComment-1473373 Share on other sites More sharing options...
requinix Posted March 20, 2014 Share Posted March 20, 2014 What do you have so far? Why are you using a CSV and not a database? What is the purpose of this +10%? Link to comment https://forums.phpfreaks.com/topic/287124-auto-refresh/#findComment-1473396 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.