I have a php/mysql question:
I am designing a website that takes xml feeds and puts them into a mysql table. From that table, I want mysql to take this new information and perform a series of calculations which then changes fields in another part of the database. This newly updated information is then displayed on the website.
I understand how to:
- convert from xml to php
- place these variables into mysql
- calculate the new info (in theory with php)
What I don't get is: where do I put the php script that tells mysql to do the calculations and what the calculations actually are.
Does it just go in a php file on the database that gets called by a cron job? I have no idea how to do linux commands though I suppose I could learn if needed. Is there any other way to simply put a script on a server and have it called every hour or so and it checks to see if any new tables have been added and if so, it does the calculations?