I have table :
===================
|id| word | source|
===================
| 1| I | S1 |
| 2| me | S1 |
| 3| you | S1 |
| 4| me | S2 |
===================
If the are same datas in word
that have different source
, I just wanna take data word
from source
= S1
How to get them? I tried using below code, but still wrong :
$query = mysql_query(" SELECT word from tb where source ='S1' group by word1 ");