I am developing a shoping system and on submit of buying items from items database i am wanting to loop through items dynamically so only items that have 1 or more but not just that get the name of the items from the variable being posted.
Now the name of the field is sid and buy
so how can i run 2 for loops in between each other?
OK, each element in $by is a product someone wants to buy
You want to print the full name of each of those products
This does not require any nesting of loops
How do the values in array $s relate to the values in array $by? How do we know which entry in $s is the right one to use for looking up the name in $by?