I m working in a simple private messaging script using PHP and SQL , and I need I way to notify the user when a new message is received, maybe in a simple notification bar , something like this :
New Messages [ 6 ]
Here is the database
TABLE `messages` (
`id` int(11) NOT NULL auto_increment,
`user_1` int(11) NOT NULL,
`user_2` int(11) NOT NULL,
`message` text NOT NULL,
`timestamp` int(10) NOT NULL )
as you see , it's very simple.
any Ideas ?
Sorry for my terrible English, Have a good day.
Make respective functions and Put conditions