if ( $a != $row1['ad'])
{$option.=''.$row1['ad'].'';}

Galiba bunu istiyorsun?