Ben aşağıdakileri yapmak için aşağıdaki kodu kullanmak çalışıyorum;
In a MySQL table called submission, check to see if subcheck = 1 for the row where
submissionid = $submissionid.Yukarıdaki # 1 cevabınız evet ise, o zaman
$commentusername = $ submittor 'satırdan "giriş" adında bir MySQL tablodanemailalanı almak ve sonra e-posta o adresi.
Bu çalışma değil. Herhangi bir fikir neden olmasın?
Teşekkür peşin,
John
$querye = mysql_query("SELECT subcheck FROM submission WHERE subcheck = '1' AND WHERE submissionid = '$submissionid' ");
if (mysql_num_rows($querye) == 1)
{
$mailaddress = "SELECT email FROM login WHERE username = '$submittor'";
$queryem = mail($mailaddress, "Someone has commented on your submission $submission.", $comment, "no-reply@domain.com");
mysql_query($queryem) or die(mysql_error());
}
else
{
//your subcheck is not 1 / nothing was found
}