The MySql table looks like:
id | values
--------------------------------
41 | 154, 256, 526, 50
86 | 542, 586, 785, 41
I want to compare values from this database with values from results from another MySql query. From that another query I get result for specific user and valus, for example:
user id: 41
values: 154,526,50
How can I compare this two database "values" columns and get as a result number of total different values and the values that are different?
In this example the result of that PHP function will be:
total number of different values: 1
different value: 256