In what format is the time displayed in the: <span id="time1"></span> on get-listing.php
I found out that mysql_functions are deprecated when I searched for mysql_connect on PHP.net. I use mysqli_functions now. You can find discussions...
It looks like the problem is in delete_message.php with the following bit of code: $value ="cb"."$msg_id"; and if($value){...
Separate names with a comma.