Hi there,
I have a shopping cart checkout form.
You can see an example screen shot of it here:
http://www.1976design.com/testarea/example.gif
I need to take each row of information (never knowing how many rows there might be) and write the updated information back into a datbase table.
The variables I need to grab from each table row are:
$imageid
$size1
$size2
$size3
$license
(I don't know if I need to create a unique id for these variables for each row?)
And this is update query I need to run at the end for each row:
$sql = ("UPDATE cart SET size1 = '$size1', size2 = '$size2', size3 = '$size3', license = '$license', WHERE imageid = '$imageid' AND userid = '$userid' ");
would anyone be able to help me do this?
I guess I need to put each row's values into an array and then do a loop where the update query is run, but I honstly know nothing about arrays and I can't get my head around them 🙁
any help would be greatly appreciated,
many thanks - dunstan