Jump to content

Heeelp plz cron jobs notification solution!


mavveton12

Recommended Posts

Im trying to create a simple cron jobs file

 

to send out an mail to accounts with low funds

 

 

SELECT Account.accountId FROM Account, Account_Ad_Fund WHERE Account_Ad_Fund.amount < Account.adFundNotificationThreshold AND Account_Ad_Fund.accountId = Account.accountId

 

 

// Find all accountIds with low funds and notification active

// List all funds, by accountId

// List fundnotificationdata by accountId

 

 

I just need the right push what im trying to do next.

 

how to write the code to perform this task, anybody im trying hade to learn php pleeease!!! im open for any solution

 

 

foreach account

if adfundnotificicationdata exists

if adfund is lower than threshold && current notificationdata is higher than threshold

sendmail...

update notificationdata...

else

insert new data...

*/

 

}

}

how to write the code to perform this task

 

With your computer and keyboard.

 

::)

 

You haven't written any code. Or at least you haven't showed it to us. You have the logic, now write the code. When you have an actual problem we can help. 

With your computer and keyboard.

 

::)

 

You haven't written any code. Or at least you haven't showed it to us. You have the logic, now write the code. When you have an actual problem we can help.

 

 

:D Im working on it, and i will let you know no need to be sarcastic :D

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.