[snip] But in the rest of the script I can't find where they declare and fill this array. [/snip]
The subscriber array is filled by the query. Since PHP is not a strongly typed language there is no need to declare the array. $sql = "SELECT `foo`, `bar` FROM `customers` WHERE `status` = 'active'"; /*run the query, testing as we go*/ if(!($result = mysql_query($sql, $connection_string))){ echo "MySQL reports an error " . mysql_error() . "\n"; exit(); } /*if the query worked the $result 'holds' the info*/ while ( $subscriber = mysql_fetch_row($result)){ echo $subscriber[0]."\t"; should have info from foo column echo $subscriber[1]."\n"; should have info from bar column } When mysql_fetch_row($result) returns FALSE the while loop exits. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php