Active Server Pages Programming (ASP)/Displaying records horizontally?

Advertisement


Question
Hi,
I am building a cinema booking system in ASP/VbScript with MS Access.

I would like to display the records from the recordset in form of:

[-----STAGE-----]

[T] [x] [x] [x] [x]
[x] [x] [T] [x] [x]
[x] [T] [x] [x] [x]
[x] [x] [x] [x] [x]
[x] [x] [x] [x] [x]
[x] [x] [x] [x] [x]

When the query is run, each record is assigned to each “[x]” to the page. But if the record does not exist them I want “[T]” to be shown. (T – taken)

Currently my page has a query string value taken from the previous page, and then the SQL code is run which generates the performance times. Each URL record has a seated assigned to it hence why I want to records to show up like the example above.  

Hope you can help.
Thanks


Answer
Dear Centurion,

I can definitely help you with your cinema booking system. But, you have not given enough information to help you. I do not know how you have stored the records in the table. Each seat is stored as columns or rows? I need the table structure and the sql query you are using, so that I can give the coding example to display the records in a matrix format.

Please post a follow up question with the above mentioned details.

Cheers
Priya

Active Server Pages Programming (ASP)

All Answers


Answers by Expert:


Ask Experts

Volunteer


Hari Priya

Experience

I have 3+ years experience in ASP. I can answer all ASP questions and databases questions in MSAccess and MSSQL. Please do not ask ASP.NET questions.

Organizations
I work as a Software Engineer in Coimbatore.

Education/Credentials
B.Sc. Chemistry, Master of Computer Education (MCA)

Past/Present Clients
I don't have any direct clients. I am a volunteer in many websites like this. Please bookmark these websites: http://delicious.com/haripriya2007

©2012 About.com, a part of The New York Times Company. All rights reserved.