SaRiD
Programmer
- Apr 19, 2003
- 45
I am running a script each month that scores a webpage out of 30.
After each month I want to be able to display the current results compared with last months results. I have this currently working at the moment by running a query on this months, and then another individual query for each row in my PHP code. This was fine until I got more results and found that it slowed down dramatically.
So at the moment it runs the main query and 20 other small queries for example. Is there a way to combine the 20 other small queries in the main query to speed things up.
So the results would bring back something like
| website | score | last month score |
---------------------------------------------
| | 22 | 18 |
So last month's score is in the same table, but the previous report - not necessarily the previous record as there are a few campaigns running.
Make sense???
After each month I want to be able to display the current results compared with last months results. I have this currently working at the moment by running a query on this months, and then another individual query for each row in my PHP code. This was fine until I got more results and found that it slowed down dramatically.
So at the moment it runs the main query and 20 other small queries for example. Is there a way to combine the 20 other small queries in the main query to speed things up.
So the results would bring back something like
| website | score | last month score |
---------------------------------------------
| | 22 | 18 |
So last month's score is in the same table, but the previous report - not necessarily the previous record as there are a few campaigns running.
Make sense???