best option for carrying data across between refreshes?
Posted: Mon Nov 29, 2010 11:27 am
hi Guys,
I'm setting up what should (hopefully) be quite a straight forward page that checks in the database and records the delay between xTime and yTime. That part has been completed and works well.
However I now want to set up a system whereby I display the last 10 results. I am thinking the best way to do it is to set up a variable that I can POST each time (as the page will automatically refresh every 60 seconds). What I'm wondering though is whether it would be better to set up 10 variables and post each of them, then start each page with set $10 = $9, $9 = $8 etc., or if it would be better to create an array, and POST the array, then reset the array using a similar process as before ($netArray['10'] = $netArray['9'] etc.)
What would people consider to be the best solution?
I'm setting up what should (hopefully) be quite a straight forward page that checks in the database and records the delay between xTime and yTime. That part has been completed and works well.
However I now want to set up a system whereby I display the last 10 results. I am thinking the best way to do it is to set up a variable that I can POST each time (as the page will automatically refresh every 60 seconds). What I'm wondering though is whether it would be better to set up 10 variables and post each of them, then start each page with set $10 = $9, $9 = $8 etc., or if it would be better to create an array, and POST the array, then reset the array using a similar process as before ($netArray['10'] = $netArray['9'] etc.)
What would people consider to be the best solution?