title: How to show data from database using php?
body: <p>i am new in terms of php or in programming i know only few in php. I have a question and it probably simple for you guys, i am having a problem here to show data from mysql database, i have this code:</p>
  
  <pre><code>&lt;?php
      $getfriend= mysql_query("SELECT * from members");
      $friend=mysql_fetch_array($getfriend);
      $rowfriend=mysql_num_rows($getfriend);
  
      //$users = array()---&gt;i think i have to put it into a array, but i don't know how
      if($rowfriend&gt;1){
          for ($x=0; $x &lt; 10; $x++){
          echo '&lt;tr&gt;&lt;td name =""&gt;&lt;img src="" alt="" width="50" height="50" /&gt; &lt;/td&gt;&lt;/tr&gt;';
          }                 
      }
  
  ?&gt;
  </code></pre>
  
  <p>what i want is to show pictures, names, gender, bday and so on... which is all from mysql database. i used here the so called for loop just to control how many rows i am going to show in page. my code is working it shows 3  with  the problem here is i don't know how to put its content to the td's. can guys help me doing this?</p>