I have a simple query that I need to email the results to particular people.
select * from data where username="mmouse"
The results can be a number of lines.
I have output the results to a table and I know it works fine.
The mail function also works for me using the following.
$to = "mmouse@disney.com";
$subject = "I'm going quackers";
$Msg = "quack quack quack";
$from = "dduck@disney.com";
mail($to, $subject, $Msg, "From: $from\r\n"
The 'mail to' address will be a variable but I will work on this another time.
So the problem I have is how to marry the 2.
Thanking in advance for any help received
select * from data where username="mmouse"
The results can be a number of lines.
I have output the results to a table and I know it works fine.
The mail function also works for me using the following.
$to = "mmouse@disney.com";
$subject = "I'm going quackers";
$Msg = "quack quack quack";
$from = "dduck@disney.com";
mail($to, $subject, $Msg, "From: $from\r\n"
The 'mail to' address will be a variable but I will work on this another time.
So the problem I have is how to marry the 2.
Thanking in advance for any help received