Prova cosi':

codice:
UPDATE utenti, utonline
SET arm = '3'
where utenti.id_utente=utonline.id_utente
AND utonline.ip ='$ip'
dovrebbe funzionare.