I'm making a coach booking system and I'm at the final stage where the user has to select a seat before inserting the data within a table.
When the user selects one of the picture boxes it'll turn green, and that specific seat Id will be stored within the Booking table.
If another customer logs in and wants to place a booking the seats that have already been selected should be highlighted red.
I was thinking of creating another table called "seats" to represent the individual seats on the UI (see below).
What I'm then trying to figure out is how to link each of those icons to a seat Id. Is there an easier way of doing this? Any help would be appreciated
When the user selects one of the picture boxes it'll turn green, and that specific seat Id will be stored within the Booking table.
If another customer logs in and wants to place a booking the seats that have already been selected should be highlighted red.
I was thinking of creating another table called "seats" to represent the individual seats on the UI (see below).
What I'm then trying to figure out is how to link each of those icons to a seat Id. Is there an easier way of doing this? Any help would be appreciated
Last edited: