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!
Loads of different ways... write your own function to suck out the data you need, format it in a CSV format and stream it to the browser/save to a file they can download. Or you can make MySQL do a CSV dump directly - but you'll probably have more control in the first instance.