The "update.php" script extracts the data from all the name rows and places it in input fields, so that you can change the content.
The "update2.php" script should update each row acording to the charges made, but I can only make it update the last row.
Please help!
-----------update.php-----------
<form method="post" action="update2.php>
<?php
$result = mysql_query("select * from menu");
while($row = mysql_fetch_array($result)) {
print "
<input type=text name=id value=$row[name]></input>
";}
print "<input type=submit>";
?>
-----------update2.php-----------
<?php
mysql_query("update menu set name='$navn' where $id ='???'");
?>