Dijkgraaf - 10:58 pm on Jul 14, 2013 (gmt 0)
Not quite sure what you are trying to do as your SQL does not make sense, you have
'user_name' = '$var5'
'user_name' = '$profile'
Unless $var5 is equal to $profile you won't get any results. Also you are using a LIKE statement in a very strange way.
Please explain in plain English what you are trying to achieve and someone might be able to help.