sir pannels
01-10-2003, 02:12 AM
hey,
ok im a bit stuck here.. im not to good with loops and dont really know how im gona do this....
i have a page that calls some info from a db... it calls all the rows under the specified ID, and adds a hidden text field to each, if the users hits a form button these rows with their hidden text fields get send to a script that needs to do a calculation...the calculation i have done...
its simply something like..
$answ1 = $val1 * $hiddenfield
$answ2 = $answ1 + 50
$finalans = $answ2 * 3
the bit im stuck on is how to make it do that for every row(with its hidden txt field val) until there are no more rows.
i hope this makes sense i think i exsplsained badly.
anyhows.. is anyone able to help me with this?
thanks:thumbsup:
-P-:cool:
ok im a bit stuck here.. im not to good with loops and dont really know how im gona do this....
i have a page that calls some info from a db... it calls all the rows under the specified ID, and adds a hidden text field to each, if the users hits a form button these rows with their hidden text fields get send to a script that needs to do a calculation...the calculation i have done...
its simply something like..
$answ1 = $val1 * $hiddenfield
$answ2 = $answ1 + 50
$finalans = $answ2 * 3
the bit im stuck on is how to make it do that for every row(with its hidden txt field val) until there are no more rows.
i hope this makes sense i think i exsplsained badly.
anyhows.. is anyone able to help me with this?
thanks:thumbsup:
-P-:cool: