$gr=explode('.',$data['user_groups']); if(in_array('2',$gr)) { echo "<img src='".IMAGES."vip.gif' alt='VIP Narys' title='VIP Narys'>"; }