Hello,
In a comment system, I am using variables called $comment and $submittor.  I am using a MySQL table called "login" that contains fields called "username" and "email."
The field "email" is an email address.
I would like to send an email with $comment in it to the "email" where "username" = "$submittor."
Here is what I have so far:
$queryem = sprintf('SELECT email FROM login WHERE username = $submittor');
How can I send the email?
Thanks in advance,
John