Jump to content

PHP archiving script


leeandrew

Recommended Posts

I need a script that runs once per week.

At the specified time the script collects certain cell data from MySQL DB in a certain table and deletes it.

Before it deletes it it sets a value accordingly in another cell as per what the data shows in the cells its about to delete..

 

e.g.

liverpool = 91 points

man utd = 85 points

arsenal = 78 points

chelsea = 76 points

 

the script reads that liverpool have the highest amount of points so places a "1" in the new cell. man utd have the second highest amount so places "2" in the new cell etc... basically it saves the positions each team has each week based on how many points they have gained throughout the week.

 

After the positions have been saved, the cells are emptied. So that each team can start fresh for the next week. Then the week after the script does the same and so on.

 

Is this possible to do in php/mysql? If not can you suggest a way i can do it? I already have the position vs points worked out. So essentially it would only need to collect the position and empty the points cell.

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.