I have a database, and within the database i have a table called "users". this contains a line for each user, phone no and all their details. Each user has a unique ID (using auto_increment).
What i would like to do is let people sign up for trips using thier ID. I have a table called trips but im not sure the best way of doing it.
One approach would be to have a line for each trip, then one field for people attending, which would update everytime people join the trip (maybe userids seperated by commas).
Another way would be for each user to have a field called trips, which inserts the trip ID when they sign up for a trip.
At the end of the day i would like to be able to look at a particular trip and see who is coming, and look at a user and see what trips they are/have been signed up to.
I hope this makes sense, i cant really get my head around it so any suggestions welcome!
thanks
What i would like to do is let people sign up for trips using thier ID. I have a table called trips but im not sure the best way of doing it.
One approach would be to have a line for each trip, then one field for people attending, which would update everytime people join the trip (maybe userids seperated by commas).
Another way would be for each user to have a field called trips, which inserts the trip ID when they sign up for a trip.
At the end of the day i would like to be able to look at a particular trip and see who is coming, and look at a user and see what trips they are/have been signed up to.
I hope this makes sense, i cant really get my head around it so any suggestions welcome!
thanks
