This maybe the stupidest thing ever, but I am having trouble with an array....
Here is the code -
//construct array of subscriptions already done.
$subQuery = "SELECT sub_id FROM $GCC_SUBS WHERE email = '{$mlo->emailAddress}'";
$subResults = mysql_query($subQuery);
$arr = mysql_fetch_array($subResults,MYSQL_ASSOC);
The resulting query, when put through phpMyAdmin, gives the the correect result, which is 1,2,3.
But when I do this -
PRINT_R($arr);
I get this -
Array ( [sub_id] => 3 )
Why would the query get 3 id's, but the Array fetch from the results give only 1 item?
I am at a loss