See here is a very useful tutorial for those who are searching for to create shoutbox in PHP with AJAX and JQuery.
Its very useful tutorial showing how to use the ajax function of jQuery and how it can be used to insert and recover data from a MySQL database via PHP in a way asynchronous.
A shoutbox is a box where guests or members can type some messages and its shown on websites instantly.
Whenever a message is submitted by the person it is stored in database and shown in the shoutbox.
All the code is given with proper explanation and comments.
Demo URL – http://yensdesign.com/tutorials/shoutbox/
Download URL – http://yensdesign.com/tutorials/shoutbox/shoutbox.zip