mavveton12 Posted January 21, 2013 Share Posted January 21, 2013 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... */ } } Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 21, 2013 Share Posted January 21, 2013 This forum is for help with PHP you wrote. Not writing it for you. Quote Link to comment Share on other sites More sharing options...
mavveton12 Posted January 21, 2013 Author Share Posted January 21, 2013 This forum is for help with PHP you wrote. Not writing it for you. Im not asking any body to write for me i just need some directions thats all! if have u have any please dont be shy Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 21, 2013 Share Posted January 21, 2013 (edited) 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. Edited January 21, 2013 by Jessica Quote Link to comment Share on other sites More sharing options...
mavveton12 Posted January 21, 2013 Author Share Posted January 21, 2013 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. Im working on it, and i will let you know no need to be sarcastic Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.