Skip to content
Advertisement

Foreach loop not working for sqllite in php

I want to use foreach for looping instead of while loop in the below code. But for some reason the foreach loop is not working as I expected. Can please help me with this.

JavaScript

THis is the code I Used.

JavaScript

Advertisement

Answer

This piece of code worked for me.

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement