Hi guys, hope someone can advise me on this, I can't seem to work out how to do this.
Basically I've got a mysql table, where one of the fields is 'Sports', and another is username. This could contain either one sport, or a number of sports (separated by a comma).
I'm trying to create a search form where users can find records depending on the sport they select. I.e. so if they choose Tennis, then it will bring up all the usernames that have the value tennis in the Sport field. I also need it to bring up all the usernames that have for example tennis, yoga and aerobics - as this would still be a match (this is one of the main problems that I am having at the moment).
Also, the user can select multiple sports to search on. So for example they can select tennis and badminton to search, so if a record has tennis is would be found, if a record has badminton it would be found, and if a record had tennis or badminton plus some other sports, it would be found aswell.
I know it's something to do with arrays but I'm not all that great at getting my head around arrays so any help would be much appreciated!
:queasy: