Need Help Creating MySQL Chat Application

I already have a website with webchat enabled in it. All I need is a simple how to procedure or step by step guide on creating mysql chat application, to chat with logged members on the website. All suggestions are welcome.
