title: Really basic query working in PMA but not in PHP
body: <p>This is the query</p>
  
  <pre><code>$db=mysql_connect('localhost','root','root');
  mysql_select_db('test');
  $query=mysql_query("SELECT * FROM table");
  $r=mysql_fetch_assoc($query);
  print_r($r);
  </code></pre>
  
  <p>It only gives me the first element.</p>
  
  <p>But in PhpMyAdmin it gives me all the elements.</p>
  
  <p>How can I make it work in PHP?</p>