You are here: Re: emailing data from my DB...?? « PHP Programming Language « IT news, forums, messages
Re: emailing data from my DB...??

Posted by Iv�n S�nchez Ortega on 12/21/07 18:05

paul814@excite.com wrote:

> while ($row = mysql_fetch_array($result)) { // puts the values into
> $row
> print $row->editorialdate;
> print $row->editorialname;
> print $row->editorialcomments;
> }
[...]
> $txt = "$row[0] \n\r\n\rPLEASE DO NOT REPLY TO THIS EMAIL, THIS IS NOT
> A VALID EMAIL ADDRESS";
> $headers = "From: Daily_Prod._Report@company.com";
> mail($to,$subject,$txt,$headers); # <--- sends the email
[...]
> all I get is a blank email with no data in it from my database.
>
> Anyone have any ideas?

I'm not very sure *grin*, but maybe it's because you're printing the data
instead of storing it in the variable that will be fed to mail() ...


--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Proudly running Debian Linux with 2.6.22-3-amd64 kernel, KDE 3.5.8, and PHP
5.2.4-2 generating this signature.
Uptime: 19:04:05 up 29 days, 5:19, 4 users, load average: 0.54, 0.63,
0.70

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация