SA-MP Forums Archive
[MySQL] Check For Change - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [MySQL] Check For Change (/showthread.php?tid=611919)



[MySQL] Check For Change - K0P - 12.07.2016

How can i check if there is a value changed in a column,forexample the column is updated through a website so the server doesnt know the data is updated,how can i check for it,i need an optimized way.


Re: [MySQL] Check For Change - Jonesy96 - 12.07.2016

Only way I can think of, is by having a loop (maybe every 10 minutes or whatever) in your server script, which checks the value in the database. Then compare that value with the value that is loaded into your variable in the script, and update.