I am using name field to get the option in dropdown from database
datas in my database
id name
1 Resham
2 Rukshana
3 Resham
4 sindya
how to write a php code for displaying the name only once in dropdown and if the
option Resham is choosen
then my output should be as
id name
1 Resham
3 Resham
and if the option sindhiya is choosen then my output should be as
id name
4 sindhiya
Please give me an example in php to do this