I'm getting a syntax error...Any help, i would greatly appreciate it
<pre><code>&lt;?php
require_once 'cn.php';
include_once("../php_includes/check_login_status.php");

$fiveMinutesAgo = time() - 600;

$sql = 'SELECT
    username, message_content, message_time
        FROM
    messages
        WHERE
    message_time &gt; ' . $fiveMinutesAgo . '
        ORDER BY
    message_time';
$query = mysqli_query($db_connections, $sql) or
die(mysql_error($db_connections));


while ($row = mysql_fetch_assoc($result)) {
              $hoursAndMinutes = date('g:ia', $row['message_time']);{



echo '&lt;p&gt;&lt;strong&gt;' . $row['username'] . '&lt;/strong&gt;: &lt;em&gt;(' . $hoursAndMinutes . ')&lt;/em&gt; ' . $row['message_content'] . '&lt;/p&gt;';
}
?&gt;
</code></pre>
