Forum Moderators: coopster
"select DISTINCT artist from music WHERE artist LIKE '%$j%'";
sorry forgot to put %% earlier
and if u want this % to work on only one side, for example if u want to find all names starting with A or B or any letter in your variable then it should be like
"select DISTINCT artist from music WHERE artist LIKE '$j%'";
So you could try:
$query = "select DISTINCT artist from music WHERE locate('$j', artist) > 0";