Re: [Linux-programlama] PHP mail sorusu

---------

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

From: Guray SATICI (guray.satici@gmail.com)
Date: Tue 07 Nov 2006 - 13:50:15 GMT


explode komutu cok faydali bir komuttur.
Kullanim seklini inceleyin ve ornek kodlara bakin.
Ordan bu sorununuzu cok rahat bir sekilde halledeceksiniz.

On 11/7/06, Erdal YAZICIOGLU <erdal.yazicioglu@gmail.com> wrote:
> 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
>

-- 
______________________________________________
Guray SATICI (Electronic [NG]near)
Sys.Adm. & Web Dev.
[Audi::Anytime Of Life] [q7 :: http://www.audi.com/q7-globe ]

_______________________________________________
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.