![]() |
|
SPONSORED LINKS BY GOOGLE |
|
2
29th October 01:16
External User
Posts: 1
|
Is logging turned on?
bastien ----------------------------------------> Date: Tue, 23 Oct 2007 16:12:14 -0600> From: thelist@tonygrimes.com> To: php-db@lists.php.net> Subject: [PHP-DB] PG: Table last updated?>> We've got a huge table in one of our Postgres databases and nobody seems to> know what it's for. Do any of the system tables keep track of the last time> the table was altered (i.e. Row INSERTs, UPDATEs, etc)?>> Tony>> --> PHP Database Mailing List (http://www.php.net/)> To unsubscribe, visit: http://www.php.net/unsub.php> __________________________________________________ _______________ R U Ready for Windows Live Messenger Beta 8.5? Try it today! http://entertainment.sympatico.msn.ca/WindowsLiveMessenger |
|
|
5
1st November 18:05
External User
Posts: 1
|
I bet your while loop over the "extract" is causing you to have:
user1 user1, user2 user1, user2, user3,... Instead of polluting your symbol table, can't you just use the email field? $email = $row['theEmailField']; I've used code like this back in the day (Notice how the array $arr was unset): $recipients = "arr[]=user1@example.com&arr[]=user2@example.com&arr[]=user3@example.com"; parse_str($recipients); for($i=0; $i<count($arr); $i++){ mail("$arr[$i]", "$subject", "$message", "From: <$sender>\n". "Reply-To: <$sender>\n"); } unset($arr); __________________________________________________ _______________ Boo!*Scare away worms, viruses and so much more! Try Windows Live OneCare! http://onecare.live.com/standard/en-...wl_hotmailnews |
|
|
6
1st November 18:05
External User
Posts: 1
|
You're re-using the same message each time around the loop. Each time
you call AddAddress you're, erm, adding another address. You either need to reset the recipients or reset the message each time round the loop (I'm not familiar with Phpmailer so I have no idea how to do this). -Stut -- http://stut.net/ |
|
|
7
1st November 18:05
External User
Posts: 1
|
Stut is right.
If you put $mail = new PHPMailer(); within the while loop, you should be okay. __________________________________________________ _______________ Climb to the top of the charts!* Play Star Shuffle:* the word scramble challenge with star power. http://club.live.com/star_shuffle.as...textlink_ oct |
|
|
SPONSORED LINKS BY GOOGLE |
|
|