Hi, i want to update several rows in my table with different information
Hi, i have a code like this:
PHP Code:
<?php
$o = mysql_query("SELECT * FROM `$mysql_data`.`category_Table` WHERE name!='Tomt felt' AND username='$userName'");
while($out = mysql_fetch_object($o)){
?>
<tr>
<td width="11"> </td>
<td width="153"><input type="text" name="<?php echo "what should i have here? :s";?>" value="<?php echo "$out->name"; ?>"></td>
<td width="93">Gå til kategori</td>
<td width="25" align="center">x</td>
<td width="24" align="center">e</td>
</tr>
<?php
}
?>
what can i do, to make it update etc 10 categories in the same form, with the same name?
think foreach and array is the thing, but i dont remeber that part at all anymore :s.
anyone with a solution?
norNerd