Problem with arrays

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I have a form like this:
<form action="products.php" method="post">
<input name="position[pos][$value]"  type="text"  id="position[pos][$value]"  value="number 1">
<input name="position[pos][$value]"  type="text"  id="position[pos][$value]"  value="number 2">
<input name="position[pos][$value]"  type="text"  id="position[pos][$value]"  value="number 3">
</form>

Note that $value from position[pos][$value] is different in all 3 fields. 

For each element of the array i want to update the value in the database. For example, for each value of the position[pos][$value] i want to update the database with the specific number.
Something like this:

$query = "UPDATE table SET value = 'number 1'  WHERE id='$value'"; 

Thanks in advance for your help!!!

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux