[Linux-programlama] PHP mail sorusu

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Erdal YAZICIOGLU (erdal.yazicioglu@gmail.com)
Date: Tue 07 Nov 2006 - 13:46:00 GMT


Merhabalar,
MySQL veritabanından çektiğim tabloda ID kısmında 1 yazıyor ise a
kulanıcısına 1,2 yazıyor ise hem a hem b kullanıcısına, 3 yazıyor ise c
kullanıcısına mail attırmak istiyorum... Nasıl yapabilirm...Şöyle bir
döngü yazdım ama olmadı :(

Yardımlarınız için teşekkürler

while($row=mysql_fetch_array($result)) {
        if($row['manufacturerID'] =='7' || $row['manufacturerID'] =='3'
|| $row['manufacturerID'] =='4'
        || $row['manufacturerID'] =='5'|| $row['manufacturerID'] =='6'
|| $row['manufacturerID'] =='49'
        || $row['manufacturerID'] =='57'|| $row['manufacturerID']
=='59'|| $row['manufacturerID'] =='64'
        || $row['manufacturerID'] =='73') {
         $to ='la@a.com';
        $message .="<tr><td>". $row['incidentDescription'] .
"</td><td>". $row['incidentStatus'] . "</td><td>";
        $message .= $row['hospitalName'] . "</td><td>".
$row['instrumentTypeName'] . "</td><td>";
        $message .= $row['manufacturerName'] . "</td></tr>";
        $message .= "<tr bgcolor=dbf1f9><td colspan=5></td></tr>";
             }
        elseif($row['manufacturerID'] =='5' || $row['manufacturerID']
=='6' || $row['manufacturerID'] =='7'
        || $row['manufacturerID'] =='22') {
         $to ='b@b.com';
         $message .="<tr><td>". $row['incidentDescription'] .
"</td><td>". $row['incidentStatus'] . "</td><td>";
        $message .= $row['hospitalName'] . "</td><td>".
$row['instrumentTypeName'] . "</td><td>";
        $message .= $row['manufacturerName'] . "</td></tr>";
        $message .= "<tr bgcolor=dbf1f9><td colspan=5></td></tr>";

        }else
{
}
_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.