<div class="grid_7 push_2" id="form_messages"> <h1>Escribe algo</h1> <form method="post" action="new_entry.php"> <textarea name="newentry" class="comment" cols="44" rows="2" maxlength="250" id="newentry"></textarea> <br /> <input type="submit" value="Create new entry" class="send_entry"/> </form> </div><br><br><br> <div class="newscomments" id="other_comments" style="margin-top: 12px"></div><br> <?php //recorremos los mensajes y los comentarios $show_messages = $nuevo->messages($_SESSION['id']); if (!empty($show_messages)) { foreach ($show_messages as $message) { $id = $message['id']; $comments = $nuevo->comments($id); ?> <br> <div class="grid_5 push_3 messages" id="other_comments" style="margin-top: 10px"> <img src="<?php echo $gravatar; ?> " width="40" height="40" /><br><br> <?php echo $message['username']; ?> <span style="float: right;"><?php echo $message['date_message']; ?> </span><br><br> <?php