$ip = getenv('REMOTE_ADDR');
<td width='859'><font size='2'><font face='Arial'>Prisijungėte kaip: <b>".$userdata['user_name']." ( čia rodo ip)</b>