ok so I got this far but I'm not sure how I can update all rows of my query.
What I am trying to do is display customer names, product and price then have the option of putting in the USPS tracking number into a field I set up and click submit and update all records.
Here is what I got so far (and it works - just need to know how I can update all records):
<form method="POST" action="enterr.php">
<?php
mysql_connect("0.0.0.0", "orders", "programmingtalk", "orders")
or die("Could not connect: " . mysql_error());
mysql_select_db("orders");
$sql = ("SELECT first_name, last_name, product, cost FROM rkl_orders WHERE STATUS='1'");
$result = mysql_query($sql)
or die ("Could not do query: " . mysql_error());
while ($row = mysql_fetch_array ($result)) {
print("<tr><td>" . $row["first_name"] . " " . $row["last_name"] . "</td><td>RKL</td><td>" . $row["cost"] . "</td><td><input type=\"hidden\" name=\"name\" value=\"" . $row["first_name"] . " " . $row["last_name"] . "\"><input type=\"text\" name=\"track\" size=\"20\"></td></tr>");
}
mysql_close();
?>
I was going to use the hidden text box "name" and then update the "track" tabel in the DB where name = name.
I think I need to array this somehow any help would be greatly appreciated.
Thanks,
Ryan