How to activate time in chat?

iframe:

<?php
  session_start();
  if (isset($_POST['message'])) {
      $message = $_POST['message'];
  }
  $db = mysql_connect("", "", "");
  mysql_select_db("bakugan609", $db);
  if (trim($message) != "") {
  $time = time();       
mysql_query("INSERT INTO messages (message,username,time) VALUES ('$message','{$_SESSION['username']}','$time')");
  }
  $result = mysql_query("SELECT * FROM messages");
  while ($row = mysql_fetch_array($result)) {
      echo "<br>";
      echo date('H:i ',$row['time']).$row['username'];
      echo "&nbsp;: {$row['message']}";
  }
?>

Answer 1

Fix it

echo "&nbsp;: {$row['message']}";

to

echo "&nbsp;:".$row['message'];