Jump to content

Detect fast increase in a database


MadnessRed

Recommended Posts

I have a database that counts a level. I want a script that will notify me if someone's level goes up by greater than a certain amount of an hour. So if for example if there level went up 500 in 1 hour it would make a note of something like

 

15:00 level 27

16:00 level 527

 

then I could see, ah, this person is cheating.

 

Is that possible?

 

---

 

or if that is not possible then a simple 1 would have say

Two rows

 

Level

Levelpr

 

Then at at midnight (or another time) we have something like

 

if ($level - $levelpr > 100)

$cheaters = 'cheaters.txt';

 

 

$fwrite = "$name Went from $levelpr to $level in 24 hours<br />/n<br />/n";

 

 

$handle = fopen($cheaters, 'a');

 

fwrite($handle, $fwrite);

 

 

--

 

I woudl be very greatful for any help.

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.