whoa i don't have any code for this but this is what i need
In sql i have the table called "total". Fields are "id, visits, visitors, day, month" and i want to calculate the "visits" field from database (the last 30 results or the last 30 days)
I hope you understand now.
Thanks.π