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!
solved while loop inside foreach loop inside while loop [closed]
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!
solved while loop inside foreach loop inside while loop [closed]