title: I need a table cell to be a form to input specific data to mysql?
body: <p>I have no idea how to explain myself which is why the question isn't even a question. I need to have a table dynamically created from data on mysql (which I've done) but I need to be able to have input in the cells under some of the headings (responsibility, organization, independent work...) When this data is submitted, I need it to be student specific. In other words, when I pull up Johnny Rotten's data, I need to be able to see all the comments under those headings that were submitted (yes this is for teaching). The number of students can vary which is why i need the whole thing to be dynamic. If this is not possible, please let me know. AND if you haven't figured it out already, I am brand new and self-taught!</p>
  
  <p>Here's what I have...</p>
  
  <pre><code>&lt;?php
  
      include 'connect.php';
  
      if ($db_found) {
  
          $SQL = "SELECT * FROM studentlist WHERE teacher1='smith' OR teacher2 ='smith' OR     
          teacher3='smith' ORDER by homeroom";
          $result = mysql_query($SQL);
  
          echo "&lt;table border='1'&gt;
          &lt;tr&gt;
          &lt;th&gt;Student&lt;/th&gt;
          &lt;th&gt;Homeroom&lt;/th&gt;
          &lt;th&gt;Responsibility&lt;/th&gt;
          &lt;th&gt;Organization&lt;/th&gt;
          &lt;th&gt;Independent Work&lt;/th&gt;
          &lt;th&gt;Collaboration&lt;/th&gt;
          &lt;th&gt;Initiative&lt;/th&gt;
          &lt;th&gt;Self Regulation&lt;/th&gt;
          &lt;/tr&gt;";
  
          while ($row = mysql_fetch_array($result)) {
            echo "&lt;tr&gt;";
            echo "&lt;td&gt;" . $row['student'] . "&lt;/td&gt;";
            echo "&lt;td&gt;" . $row['homeroom'] . "&lt;/td&gt;";
            echo "&lt;td&gt;" . "" . "&lt;/td&gt;";
            echo "&lt;td&gt;" . "" . "&lt;/td&gt;";
            echo "&lt;td&gt;" . "" . "&lt;/td&gt;";
            echo "&lt;td&gt;" . "" . "&lt;/td&gt;";
            echo "&lt;td&gt;" . "" . "&lt;/td&gt;";
            echo "&lt;td&gt;" . "" . "&lt;/td&gt;";
            echo "&lt;/tr&gt;";
          }
          echo "&lt;/table&gt;";
  
      }
  
      mysql_close($connect);
  
  ?&gt;
  </code></pre>