/    Sign up×
Community /Pin to ProfileBookmark

Ticket Ordering System

Ok, so here’s what I’m trying to do:

Setup a ticket ordering system that shows a map of the auditorium and all the seats that have been purchased already. I have the map of the auditorium almost ready to go, but I’m unsure as to how to go about implementing such a system. I need to store the information in a MySQL database as well.

Anyone have any ideas on how to go about doing this? I don’t even know how to get started ?.

Thanks for all your help,
Will ?

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@NogDogMay 18.2006 — Start by designing your database, as that will underlie everything else.

Without knowing enough details to be sure, I might approach it something like this:

[u]event_description[/u]

event_id (primary key)

description

price

[etc.]

[u]event_instance[/u]

instance_id (primary key)

event_id (from event_description)

date

start_time

[u]seat[/u]

seat_id (primary key)

section_number

seat_number

[or whatever other fields would best describe each seat]

[u]transaction[/u]

transaction_id (primary key)

instance_id

customer_id

[other info you want to track for each sales transaction]

[u]trasaction_to_seat[/u]

transaction_id

instance_id

seat_id

[the combination of these three fields would be defined as unique]

When checking for seat availablity or recording which have been sold, the transaction and transaction_to_seat tables would be the tables you search/update (using the other tables to present related information to the user).

Again, this is just a preliminary design concept off the top of my head. Depending on the specifics of your requirements you may need to change it a little or a lot.
Copy linkTweet thisAlerts:
@tgrk35authorMay 18.2006 — Thanks for the quick reply.

I think that will help a great deal ?.

Also, another quick question...

Which do you think would be a better idea for the seating chart? Tables or DIVs?

(The cells will be one color if they're available, another if they're taken).

Thanks again,

Will
Copy linkTweet thisAlerts:
@NogDogMay 18.2006 — I think you could make a valid argument for this being tabular data, and thus legitimately represented via an HTML table.
×

Success!

Help @tgrk35 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.12,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...