dogbiter Posted July 3, 2008 Share Posted July 3, 2008 so i'm just curious how the while(), do..while, for(), and foreach() loops work differently because when i do a normal mysql query in php the foreach() will return the array but if i do a join or a query involving more then one table then the foreach() loop doesn't work and i have to user a while() loop just curious how they work differently if someone wants to explain it or point me to a book or web site that explains it i will be very appreciative. Link to comment https://forums.phpfreaks.com/topic/113030-how-do-the-loops-work/ Share on other sites More sharing options...
bobinindia Posted July 3, 2008 Share Posted July 3, 2008 I have found this site helpful http://www.tizag.com/phpT/whileloop.php They have a page on each of them. Link to comment https://forums.phpfreaks.com/topic/113030-how-do-the-loops-work/#findComment-580631 Share on other sites More sharing options...
.josh Posted July 3, 2008 Share Posted July 3, 2008 http://www.phpfreaks.com/tutorial/php-loops Link to comment https://forums.phpfreaks.com/topic/113030-how-do-the-loops-work/#findComment-580633 Share on other sites More sharing options...
dogbiter Posted July 3, 2008 Author Share Posted July 3, 2008 thanks i looked at the first one it's very informative but not quite what i was looking for i'll check out the phpfreaks one now Link to comment https://forums.phpfreaks.com/topic/113030-how-do-the-loops-work/#findComment-580637 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.