Let's say I have such table:
+----+------------------+
| id | participantsId |
+----+------------------+
| 1 | 1,24,192,3481,12 |
+----+------------------+
I'd like to select every single result in this table, where user with ID 3481
has partcipated. How can I do that? Ye old SELECT * FROM example WHERE paricipantsId=$id
won't work.
Couple things worth noting, that in this particular field, there may be just alone 3481
, or tens or even hundreds of other IDs. And they are most likely to be seperated by comma, since there are no strings allowed, only integers (for input from PHP, of course field will have to be a string).
How could I select every row that has participantID 3481
amongst many others in the same cell?