dagon,
Thank you for your response.
While your answer wasn't what I was looking for, it did key me to realize what it was I was doing wrong.
I missed putting in a line:
$row=mysql_fetch_row($result);
The whole thing looks like this, and works perfectly.
$sql="SELECT users.email, user_data.fname, user_data.mname, user_data.lname, user_data.phone, user_data.dsp_pref FROM users, user_data WHERE users.mem_id = user_data.mem_id && users.user = '$affiliate'";
$result=mysql_query($sql) or die(mysql_error()."<br><br>".$sql);
$row=mysql_fetch_row($result);
for ($i=0; $i<=5; $i++)
{
echo "The number is " . $i . " result is ".$row[$i]."<br />";
}
Produced these results:
The number is 0 result is douglas@domain.com
The number is 1 result is First
The number is 2 result is Middle
The number is 3 result is Last
The number is 4 result is 701-555-1212
The number is 5 result is 26
It always seems to be the simplest things that cost me the most time.
Thanks again,
Doug