title: echoing results of a fetch_assoc
body: <p>This is my code:</p>
  
  <pre><code>&lt;?php 
  mysql_connect("localhost","*****","********") or die("Can't connect to DB");
  mysql_select_db("kroltan_main") or die("Can't select to DB");
  $result = mysql_query("SELECT * FROM comments") or die("Can't fetch data");
  if(mysql_num_rows($result) &gt; 0){
      $info = mysql_fetch_assoc($result);
      while($row = mysql_fetch_assoc($result)){
          echo "&lt;div class='t_post'&gt;";
          echo "&lt;div class='t_message'&gt;" .$row["comment"]. "&lt;/div&gt;";
          echo "&lt;div class='t_info'&gt;" .$row["name"]. "&lt;/div&gt;";
          echo "&lt;/div&gt;";
      }
  }
  ?&gt;
  </code></pre>
  
  <p>I'm trying to generate a container div with two divs inside, one that shows the "name" value of a MySQL row, and the other that shows the "comment" value. But when i test it, there are no contents (nothing is echoed). My MySQL table has contents on it, so it's a problem with my code. <a href="http://kroltan.eliti.com.br/?/=Talk" rel="nofollow">http://kroltan.eliti.com.br/?/=Talk</a>. The page has some info on it, but that's irrelevant.</p>