Okay here is the full code.  Now I got this code off a friend!  In this first 
section to display the data that is grabbed from the db.
  $db = mysql_connect("localhost", "user", "pass");
  $result = mysql_query("SELECT `nickname`  FROM tipping
ORDER BY `score`
DESC LIMIT 0, 30",$db);
  while ($myrow = mysql_fetch_row($result)) {
<br><input type=text name=username[$a] value=%s> <br>",
  <input type="submit" value="submit">
  It displays the data fine.  Please note in the above there is more code and I 
doubt the issue is in there as the data fetching shows fine, I believe the 
error lies somewhere below.
  Than the form submit is pushed to another page with this code:
      if ($REQUEST_METHOD == "POST") {
            $usr = "user";
            $pwd = "pass";
            $db = "db_select";
            $host = "localhost";
              $cid = mysql_connect($host,$usr,$pwd);
            // NOTE that form fields automatically become variables
  $query = "insert into round3 SET username='$username[$a]'";
            echo(" ");
      else {echo("Ooops, something bad happened!  Please try again shortly.");}
  <a href="admin.php">BACK</a>

  But when I check the db only ONE entry is added and it's blank.  But on the 
the page that displays the data shows 12 records.  So it's not updating for 
some reason?  Any help?

Reply via email to