+ 3

Can I loop data from database using foreach or for loop in php ?

I have try it using foreach or for loop but it doesn't work. it will show only the first data in database I'm using mysqli_fetch_array() , but if I'm using while loop it work perfectly

19th Feb 2018, 11:02 AM
ivan Pratama
ivan Pratama - avatar
2 Respostas
+ 22
well using python is easier than php because it's better and more secured custom connection
19th Feb 2018, 10:00 PM
warlord
warlord - avatar
+ 4
@warlord, thank man I will try it
19th Feb 2018, 11:00 PM
ivan Pratama
ivan Pratama - avatar