I am hoping someone can help. I am trying to build something and I would like PHP/MySQL to group results. Here is an example of my table:
id service service_info service_crew
num varchar longtext varchar
In service_crew, the format will be FirstName.LastName but sometimes there can be multiple, such as: John.Doe,Sam.Smith,Alex.Jones or Jordan.Smith
What I would like to do is group results per crew member so an email can be sent with the relevant info for each of the services they will work that day, but due to the amount of crew members and a quick changing environment, it is not possible to have a list of all crew members stored, so it will need to work purely based on the information in this database table.
I hope this makes sense?
Thanks!