hi everyone
can you give me an idea about how to implement chat room using PHP and MySQL
Thanks
hi everyone
can you give me an idea about how to implement chat room using PHP and MySQL
Thanks
The best you can do with php and mysql is create a bulletin board kind of system where people add comments to a "channel", then reload the page to update.
In general, I think, it is a bad idea to use PHP for this kind of project. Every client hast to reload the page (mentioned bulletin board e. g.) every few seconds to get informed about updates.
You will probably want to use AJAX or if not that, Javascript with timer to make chat appear instant or with polled updates.
There are lots of tutorials on creating something like this - including a number with AJAX i/o - http://css-tricks.com/chat2/
If you want to code in PHP and a little javascript, try Jaxl library Web Chat sample application. Can be worked upon to build a full fledged chat systems. http://github.com/abhinavsingh/JAXL. XMPP protocol is the way today, when it comes to chat client :D