title: Array from Database PHP
body: <p>Hi I need to create an array from database;
  myTable looks like this</p>
  
  <pre><code>id           | name       | address |
  -------------+------------+---------------
  1            | Peter      | Union Streeet|
  2            | John       | King Street  | 
  </code></pre>
  
  <p>Then I have sql that will select values from database</p>
  
  <pre><code>$record=mysql_query("SELECT * FROM myTable");
  while($row=mysql_fetch_assoc($record)){
        //fill array how to fill array that will look like bellow from database???
  }
  </code></pre>
  
  <p>I need to create array that will look like this</p>
  
  <pre><code>$list = array (
      array('$row[id]', '$row[name]', '$row[address]'),
      // array('$row[id]', '$row[name]', '$row[address]')
      // FOR EACH LINE FROM DATABASE NEW NESTED ARRAY
  );
  </code></pre>