Bus seat reservation tutorial

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

kevz
New php-forum User
New php-forum User
Posts: 29
Joined: Fri Mar 15, 2013 6:50 am

Bus seat reservation tutorial

Postby kevz » Tue Mar 19, 2013 1:45 pm

Hi,

Does anyone have any idea or know any good tutorials which i can learn from so that i would have an idea on how to create a bus seat reservation? At the moment i am working on phpmyadmin (WAMP).
The real question is how do i make a bus seat plan where the seats can be selected. Do you need a special program for this?

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Bus seat reservation tutorial

Postby johnj » Wed Mar 20, 2013 1:27 am

First, decide whether it should a web based online soln or a stand alone desktop soln.

kevz
New php-forum User
New php-forum User
Posts: 29
Joined: Fri Mar 15, 2013 6:50 am

Re: Bus seat reservation tutorial

Postby kevz » Wed Mar 20, 2013 4:58 am

it should be a web based project. I think this method maybe to hard for me to do. Is there a easier way to achieve this given the scenario:

1. where bus seats in total are shown
2. Upon reserving a seat/seats, the available seats is then updated.

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm

Re: Bus seat reservation tutorial

Postby seandisanti » Wed Mar 20, 2013 7:18 am

I'd just go with a database representation. You can have tables for buses, seats, etc; a seat is connected to the bus its on and any associated reservation. then you can easily generate reports of reservations, available seats, etc.

kevz
New php-forum User
New php-forum User
Posts: 29
Joined: Fri Mar 15, 2013 6:50 am

Re: Bus seat reservation tutorial

Postby kevz » Wed Mar 20, 2013 7:19 am

thnx, i will start looking for tutorials on this

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm

Re: Bus seat reservation tutorial

Postby seandisanti » Wed Mar 20, 2013 7:29 am

you should be able to find any number of good resource management algorithms that will work for this situation, but you may be surprised how easy it is to just code it. Write out your logic, then build database objects to support the logic, and the code will just about write itself.

kevz
New php-forum User
New php-forum User
Posts: 29
Joined: Fri Mar 15, 2013 6:50 am

Re: Bus seat reservation tutorial

Postby kevz » Sat Mar 23, 2013 3:57 am

sorry man

But you are talking to a complete beginner with no idea on what you just said. I have tried searching for days and came along this jquery ui stuff. It is so confusing and i am still lost. All i want to do is find a way on how to allow customers to select a seat or seats and book them, from this the total bus seats should update to show how many seats are left for the trip.

Maybe something like this project. http://www.youtube.com/watch?v=QduMpOz9aX4

Do i have to purchase a 3rd party software to achieve this since im using phpmyadmin mysql?
Or does this sort of thing require a professional web designer?

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm

Re: Bus seat reservation tutorial

Postby seandisanti » Mon Mar 25, 2013 7:09 am

You can do it, it's not as complex as you think it is, I promise. I"ll try to give some specific help later when i'm not working.


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 4 guests