
June 22nd, 2000, 05:37 AM
|
|
Apprentice Deity
|
|
Join Date: Jul 1999
Location: Niagara Falls (On the wrong side of the gorge)
Posts: 3,237

Time spent in forums: 4 m 8 sec
Reputation Power: 17
|
|
|
A few;
First $cntr is being started as 1 (as is your loop in the second script) but the first value will be 0. Change the for loop to:
for ($i=0;$i<$cntr;$i++)
will solve that. Second, you are not passing $cntr to the second script that I can see. You would have to add:
echo "<input type=hidden name=cntr value='$cntr'>";
after the while loop.
Better yet, just do away with the counter incrementing and use:
$cntr=mysql_num_rows($cart);
along with the corresponding hidden form element outside of the loop (but inside the <form></form> tags.
[This message has been edited by rod k (edited June 22, 2000).]
|