PHP Gurus,
        This is my other question which motivated me to join this list.
        I've been using the book "PHP and MySQL Web Development" to
learn how to build dynamically driven sites. For the most part it's
great. But I don't have anyone I know personally that I can ask when I
don't understand a part of the book.
        I want to send out an e-mail to a group of people. Each
individual is stored in their own row in my MySQL database, with their
address, name, and all those details. My understanding is that I can use
either a "for" loop, or a "while" loop to accomplish this.
        In the example they give in this book, they use a "while" loop
(page 670, for anyone who has it). But it's confusing because it looks
like this:
        while ( $subscriber = mysql_fetch_row($result))
        {
        [write and send the email]
        }
        $subscriber is probably an array, filled with the email address
and information about the mailing list subscriber. But in the rest of
the script I can't find where they declare and fill this array. But more
than that, I can't understand how this "while" loop would ever stop
running. Nothing seems to change $subscriber within the "while" loop's
control structure. It doesn't ever say anything like "$subscriber ++1".
Nor does $result have anything act upon it which would change it. So to
me they both look static, and this loop looks endless.

-- 
Cheers!
Dave G
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to