http://www.dbforums.com/t1000871.html

linked from the mysql forum page. The content is gone! I just posted a question yesterday that I need answered!

The thread subject is "looping in mysql"