$query = mysql_query("SELECT 'arma1','arma2','arma3','id_utente','idutente'
FROM utenti, utenti_online
WHERE ip='$ip' AND idutente=id_utente",$conn)
or die( "Errore selezione arma: " . mysql_error() );


Non guardo il resto... qui trovi gli apici ai nomi campo che non ci devono essere.




ps... qui togli AND

UPDATE utenti,utenti_online
SET arma3 = '$arm' AND WHERE idutente = id_utente AND ip = '$ip' ",$