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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
.josh Posted July 3, 2008 Share Posted July 3, 2008 http://www.phpfreaks.com/tutorial/php-loops Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.