PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Both suggestions worked great. Is there a good reason for using one over the other?
For my SQL query to pull all the data by year only, I've looked through the MySQL manual and spotted the YEAR function. It doesn't give an example of it in a query, but am I right in assuming it works similiar to other functions like SUM?
Big thanks to you guys! Can't tell you how much I appreciate all your help. Wish I could return the favour, but I think it's going to be a while before I'm at that level.