PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
After a night with no sleeping at all, I'm starting to make some stupid mistakes, I'm trying to store the arrays ($row) coming from database in a new longer array called $despdef:
Perfidus wrote:I'm afraid a posted this question in the wrong place, I have already post it in Databases and I would like to delete it from here, but, how to?
It's OK it's a PHP question more than a database question anyway.... it relates to your loop and what you're asking each repetition to do...
So you asked What does while do here???
The answer is very simple and easy to overlook --- All it does is that everytime a new array is returned from database, it stores tht array into same array position as before. All this continues until all rows are returned. then again it continues for next iteration of for loop. So if there are 15 records in the db you are fetching 225 rows of data.
EDIT: I see you have been adequately answered by timvw in your other post...