Add an extra table every time the row is updated
<p>I basically have an input system where people enter data and the data is printed in a specific order in a HTML table. </p>

<p>I have some code which works fine below except that every time the row is updated, the table is edited instead adding a new table with the data. Also when i refresh the data disappears?</p>

<p>My code is below:</p>

<pre><code>     $query = "SELECT * FROM rumours";
        $query = mysql_query($query) or die('MySQL Query Error: ' . mysql_error( $connect ));
        while ($row = mysql_fetch_assoc($query)) {
                        $id = $row['id'];
                        $band = $row['band'];
                        $title = $row['Title'];
                        $description = $row['description'];
                         }
$sql="INSERT INTO rumours (band, Title, description)
VALUES
('$_POST[firstname]','$_POST[lastname]','$_POST[age]')";

if (!mysql_query($sql,$connect))
  {
  die('Error: ' . mysql_error());
  }
 if (mysql_query($sql, $connect)) {
echo "&lt;table border='1'&gt;";
echo "&lt;tr&gt;";
echo "&lt;td&gt; $title  &lt;/td&gt;";
echo "&lt;/tr&gt;";
echo "&lt;tr&gt;";
echo "&lt;td class = 'td1'&gt; $description &lt;/td&gt;";
echo "&lt;/tr&gt;";
echo "&lt;/table&gt;";
    }
echo "1 record added";

mysql_close($connect);
</code></pre>
