Quantcast
Channel: Adobe Community : All Content - ASP VBScript Development (read only)
Viewing all articles
Browse latest Browse all 106

need suggestion for "hourly reservation" program

$
0
0

I'm using classic ASP.

I will have multiple rooms and the rooms can be reserved for various hours in the day i.e. 2:00-4:00pm and 6:00-8:00 pm.

My thought is a table with each column representing an hour, and then changing the background color if that hour is reserved. If I loop through the recordset of all reservations for that room...I guess this is where I'm stuck. What's the best way to know if 2, 3, 4, 6, and 8 should be colored. I don't want to have 24 fields in a database (representing each hour). Should I loop through the recordset before each room's row is written, and maybe use an array to show which hours are reserved? I may be missing a completely easier way to do this.  Any suggestions?


Viewing all articles
Browse latest Browse all 106

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>