rendered paste body<?php include 'inc/dbcon.php'; include 'inc/opendb.php'; $sql = "SELECT * FROM `shout` WHERE `sent` >= DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 30 MINUTE) ORDER BY `s_id` DESC"; $result = mysql_query($sql); if($result) { while ($row = mysql_fetch_array($result)){ ?> <div class="containner" onMouseOver="this.style.backgroundColor='#ccc'" onMouseOut="this.style.backgroundColor='#fff'"> <div class="sent"><?php echo $row['sent']; ?></div> <div class="sender"><b>Sender:</b> <?php echo $row['sender']; ?> </div> <div class="shout"><b>Message:</b><p><?php echo $row['shout']; ?></p></div> </div> <?php }} else { echo '<div class="shout" align="center">'; echo '<b>' . 'You Have ZERO! Shouts. Try Heating uo your Set More.' . '</b>' . '</div>';} ?>