My info table has the following columns:
id, comment, status
I want to select all comment from info, and am using the following query :
SELECT name FROM info WHERE status = 1 ORDER BY id
the comment columns has the following content :
id 1 : hello world 2010
id 2 : hello the world 2010
id 3 : hello iam in 2010
id 4 : hello 2020
...
I want to echo all the entries filtred by number (regex number 0-9 4 digit) without duplicates. example for output : id 1 : 2010 id 4 : 2020 Saying: under columns "comment" we have inserted more than 100 row in different value.