PDA

View Full Version : Working on the inactive user mod. Can't figureout mistake


robertjandreu
05-21-2008, 07:59 PM
I'm working on improving the inactive user mod. But I can't figure out a mistake I prolly made in the new update. So I want someone to check it.

when running it with reminder_count on it should pick the count of emails out of the DB and check if the max emails is already is send. if not it should send the email.

The checking and updating goes fine with the while statement. But when he's going to send with the while statement it doesn't work resulting in this message:

Inactive User Reminder Emails
Makes use of the reminder Count

Found 2 Inactive Users.

Done



While it should be this:
Inactive User Reminder Emails
Makes no use of the reminder Count

Found 2 Inactive Users.

Sent To: testuser

Done


This is the result with reminder_count disabled.

Can someone review my code because I'm clearly missing something.