I'm sorry but I don't follow what you are saying.
Tried engaging my brain but nothing really happened !
I changed my code as per your suggestion to
//create the array
$query = "SELECT SId FROM tblS WHERE CoRef = '$CoRef'";
$result21 = mysql_query($query) or die (mysql_error());
while($row21 = mysql_fetch_array($result21))
{
$SRef .= $row21["SId"]."\n";
//I have tested the array - all OK
print_r ($SRef);
}
$body = "
Hello this is the information you requested
' " .$SRef. " '
thanks
";
mail ("me@domain.com","information","$body");
But still get the same e-mail output with just the word 'Array' instead of the actual contents of the array..........
Have I got the right idea ? Also, where am I supposed to use
$SRef = '';
thanks