CodeIgniter Forums
What todo with users whilst updating database - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: What todo with users whilst updating database (/showthread.php?tid=5918)



What todo with users whilst updating database - El Forum - 02-08-2008

[eluser]ciPhil[/eluser]
Hi,
I am new to this so am trying to work on a simple project.

I will be deleting the contents of a small web hosted table and reinserting modified data every hour.

How should I deal with users that are looking at this data.?
only one database allowed on my hosting.

It is the stratergy I need then I can work on learning the implementation.

Cheers
phil


What todo with users whilst updating database - El Forum - 02-08-2008

[eluser]Phil Sturgeon[/eluser]
This doesnt sound like the best way of handling the situation, but if its the only way then its very easy to do. If its on the page then it belongs to the user, you cant take it back. However if they try clicking a link to data that no longer exists, just check the data coming from the models and if it no longer exists then throw up a show_error().


What todo with users whilst updating database - El Forum - 02-09-2008

[eluser]ciPhil[/eluser]
Thanks for the info,
when I have learnt a lot more, I will look at a better way. :coolsmile:
Cheers, phil