title: php create dynamic html table
body: <p>I need to create a dynamic html table using PHP after parsing a JSON file.<br> I need this column structure for my table; <code>Name | Status | Age | Count | Progress | Bad</code></p>
  
  <p>How can I create a new row for every 'record' parsed from the JSON file (I can create a tab separated string).<br>An additional difficulty is that some 'records' only contain data for the column 'Name' and  others for all columns.</p>
  
  <p>So my question is how to add a row dynamically to the table and fill the right column ?<br>
  (<em>The key form the JSON file is the column header</em>)</p>
  
  <p>Example of JSON format:</p>
  
  <pre><code>{ 
  "John":     {"status":"Wait" }, 
  "Jennifer": {"status":"Active" }, 
  "James":    {"status":"Active","age":56,"count":10,"progress":0.0029857,"bad":0} 
  }
  </code></pre>