[ad_1]
Inside foreach you are updating $result and $row with new values, so the outer while will stop to loop.
Rename those variables and it’ll work!
[ad_2]
solved while loop inside foreach loop inside while loop [closed]
[ad_1]
Inside foreach you are updating $result and $row with new values, so the outer while will stop to loop.
Rename those variables and it’ll work!
[ad_2]
solved while loop inside foreach loop inside while loop [closed]