Answer the question
In order to leave comments, you need to log in
What is the best loop to get data out of a MySQL database?
People really confused me. Some people say it's best to get data out of the database with while and others say it's best with foreach. So which one to use in which cases?
Answer the question
In order to leave comments, you need to log in
No difference. They are basically the same. Which one do you like better. I myself always use while, the old fashioned way.
In different cases in different ways. Just write code! Use whichever option suits you best.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question