Hi all,
I have the following piece of code:
$message = "The following people have visted:
//print an array of hits within message
";
mail($email,"You've had a hit", $message, "From:webmaster<webmaster@broadbandits.co.uk>");
I need to know if I can scroll through a for loop within the variable to show all the hits or is there a another way around this?
for example:
$message = "The following people have visted:
for ($k=0; $k<=count($readfile)-1; $k++)
{
$fields = split("\t",$readfile[$k]);
print("$fields[0] and $fields[1] and $fields[2]<br>");
}
";
mail($email,"You've had a hit",
$message, "From:webmaster <webmaster@broadbandits.co.uk>");
Obviously the above code wont work, but if anyone could help that would be great.
Thanks
Jon.