I would like the mail function to send an
email with the results of a query in
the body of the message. So far I only
understand how to send the values of variables passed from a form.
The code looks like this so far:
$result = mysql_query ("select * from workorder where dba='TechMarin'");
if ($row = mysql_fetch_array($result))
{
print "HELLO";
print $row["id"];
print $row["date"];
mail("tpotter@techmarin.com","Email from form","$username\n$password\n$dba\n$id\n","From:database@techmarin.com");
}
?>
but $id is blank instead of containing the
value from the field.
Please speak simply, I am still stupid :-)
Thanks for any hints !!