I would like to create an array (in php) from sql results like this: We have the sql-table "Posts" which stores the Name and the Message.Example:
İsim | Mesaj
John | Merhaba
Nick | güzel bir gün
George | Hoşçakal
John | nerede
What i want is to output the names of people who have posted a message but dont display the same names more than 1 time. So the output would be John,Nick,George. (From these records, we see that John has posted 2 messages, but at the final output, we see only one time his name).
Is this somehow possible? Thanks in advance.