VoltzRoad
03-03-2012, 01:24 AM
im trying to charge customers for a recurring service using a php script. The script must check many customer database fields to determine who to charge and how much. I'm just confused on the "best practices" that would be used in this scenario.
Should i make one huge select statement to the SQL database for each client and store all their info temporarily in arrays while working on them, and then one huge update statement at the end? Im afraid if i start manipulating things one at a time i might have a problem with credit card acceptance (or anything else), and have to somehow go back and recreate the customer's previous state.
Or am i using entirly the wrong approach?
It hard enough to learn all these technologies let alone understand where to use which and when:confused:
Any direction would be appreciated, let me know if you need more detail to answer.
thanks
Should i make one huge select statement to the SQL database for each client and store all their info temporarily in arrays while working on them, and then one huge update statement at the end? Im afraid if i start manipulating things one at a time i might have a problem with credit card acceptance (or anything else), and have to somehow go back and recreate the customer's previous state.
Or am i using entirly the wrong approach?
It hard enough to learn all these technologies let alone understand where to use which and when:confused:
Any direction would be appreciated, let me know if you need more detail to answer.
thanks