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!
those are two very different and very large questions... We'll help you walk the path of coding it yourself, or we can point you toward tutorials and/or helper classes/functions...