This topic is locked

A limited number of orders at a time

10/15/2011 5:23:49 PM
PHPRunner General questions
kanclerz author

Hello

Our company recently purchased a license for Phprunner is great I did it a couple of projects. But I have a problem with one. We build applications for placing orders, each user has an account from which you ordered, but niepotrafie construct a lock that allowed the user to deposit only 10 orders within 24 hours. Is it possible to do such blocking limiting the number of orders in a given time in Phprunner. If it is possible to welcome the opportunity I will know the solution. Sorry for my english I'm Polish language that you and I know the average

C
cgphp 10/16/2011

You can keep track of the number orders for a given account using a table in the database. The needed fields are:

  • account_id
  • last_order_date
  • number_of_orders
    Every time a customer inserts a new order, check against the table if he has reached the maximum number of orders for that day.