how to solve the query

Posted by Parthibansk under ASP.NET on 4/15/2013 | Points: 10 | Views : 717 | Status : [Member] | Replies : 2
developing online car booking application..

i have a scenario for restricting only 10 bookings daily in the portal
how to implement it..




Responses

Posted by: Santhi on: 4/15/2013 [Member] Starter | Points: 25

Up
0
Down
Hi

you can achieve this scenario by the following way
Each day is unique right..
When the application is accessed today..
check the date time.. if there is no record on the database on today's date.
Then allow the first ten users to book the car.
You need to take the count value for the day.

Thanks & Regards,
Santhi .V

Parthibansk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Learningtorise on: 4/15/2013 [Member] Starter | Points: 25

Up
0
Down
Create a session variable and increment same.

Regards.


http://hashtagakash.wordpress.com/

Parthibansk, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response