title: fill MySQL result into a grid
body: <p>I have a table with project files and i am selecting project files that have the same date and display them in a row. For example: </p>
  
  <pre><code>date x --- a b c d
  date y ---e f g h
  date z----- i j
  </code></pre>
  
  <p>each row has 4 places to hold the result as i don't anticipate having more than 4 projects per day.
  I have used the query below to get distinct dates</p>
  
  <pre><code>$sql = "SELECT DISTINCT date FROM project_files WHERE projectNumber = something";
  $result = mysql_query($sql) ;
  </code></pre>
  
  <p>Is there an easy way of getting data for each row and displaying it?</p>