View Single Post
Old 04-11-2007, 04:26 PM   #8 (permalink)
exam
Contributing Member
 
exam's Avatar
 
Join Date: 04-20-06
Posts: 310
iTrader: 0 / 0%
Latest Blog:
None

exam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web proexam is a highly respected web pro
Quote:
Originally Posted by Taltos View Post
Actually, I think exam is right because it is the assignment = rather than the comparison == in the while loop expression. That messes me up all the time as I work in too many different languages and mix and match syntax. Most of the current ones are like that but I have worked in a lot of older languages that didn't differentiate between assignment and comparison when it came to equal signs.
If you changed it to the comparison operator (==) then the loop would never run, since $top contains an array with the values of the first row returned from the database, and $mfa (made for adsense??) is undefined.
__________________
~exam~
exam is offline   Reply With Quote