title: Displaying php+mysql rows without using tables
body: <p>How do I display the rows in mysql without using tables? Just like the ones on twitter feed and facebook. Is it possible to use <code>&lt;span&gt;</code> or <code>&lt;div&gt;</code> or using unordered list?</p>
  
  <p>I want to diplay the picture thumbnail, name, their post.</p>
  
  <p>My code as of now, it only displays the post itself.</p>
  
  <pre><code>$sql_check = mysql_query("SELECT * FROM messages order by msg_id desc");
  if(isset($_POST['message']))
  {
      $message = $_POST['message'];
  
      mysql_query("INSERT INTO messages(msg, userid) values ('$message', ". $s_id . ")");
  
      $sql_msg = mysql_query("SELECT msg ,msg_id FROM messages where userid = $s_id order by msg_id desc");
  
      $row = mysql_fetch_array($sql_msg);
  }
  
  while($row = mysql_fetch_array($sql_msg)){
      &lt;table cellpadding="0" cellspacing="0" width="500px"&gt;
          &lt;tr&gt;
              &lt;td style="padding:14px;" class="comment_box" align="left"&gt;&lt;?php echo $row['msg']; &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  }
  </code></pre>