title: Input text (mysql table column for html table header)
body: <p>I have this code from one of the question here in Stack Overflow...</p>
  
  <pre><code>&lt;table&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;?php
        $row = mysql_fetch_assoc($result);
              foreach ($row as $col =&gt; $value) {
                  echo "&lt;th&gt;";
                  echo $col;
                  echo "&lt;/th&gt;";
              }
        ?&gt;
        &lt;th&gt;Edit&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;?php
    // Write rows
    mysql_data_seek($result, 0);
      while ($row = mysql_fetch_assoc($result)) {
          ?&gt;
      &lt;tr&gt;
        &lt;?php         
      foreach($row as $key =&gt; $value){
          echo "&lt;td&gt;";
          echo $value;
          echo "&lt;/td&gt;";
      }
      ?&gt;
        &lt;td&gt;&lt;button id="edit_project_button(&lt;?php echo $row['ID']; ?&gt;)" class="edit-project-button edit button" onclick="editproject(&lt;?php echo $row['ID']; ?&gt;)"&gt;Edit&lt;/button&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;?php } ?&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I have a mysql table named quiz1912 and the columns inside it are </p>
  
  <p>id,name,quiz1,quiz2...</p>
  
  <p>The user can add quiz so the column in my mysql table will add a column named quiz3 and it will continue as long as the user wants to add a quiz...</p>
  
  <p>The above code will generate an html table like this:</p>
  
  <pre><code>id    name    quiz1    quiz2   Edit
  
  1     john    (null)   (null)  (edit button)
  </code></pre>
  
  <p>I want to have a table like this...</p>
  
  <pre><code>id    name    quiz1    quiz2 
  
  1     john    (input)  (input)
  </code></pre>
  
  <p>.... My question is.. is there any way so I can put an input text in one, two or more columns in a row so i can get rid of the edit project button... the columns that I should put a input starts with 'quiz' and the users can add quiz if they want so the quiz that will be added will have a name like quiz1, quiz2, ...</p>