i am having some list of domains in the DB,like
http://www.masn.com/index.html http://www.123musiq.com/index.html etc
http://www.masn.com/index.html
http://www.123musiq.com/index.html
w
use substring_index
substring_index
http://dev.mysql.com/doc/refman/5.1/en/string-functions.html#function_substring-index
like
SELECT SUBSTRING_INDEX(urlfield, '/', 1) from mytable