Vorrei scrivere nel campo 'arm' where il campo 'ip' (che si trova nella tabella "utonline") è uguale a $ip. Le sue tabelle sono legate dal valore idutente e id_utente nelle tabelle utenti e utonline
Così non gira...Codice PHP:
UPDATE utenti SET `arm` = "3" WHERE idutente = ( SELECT id_utente
FROM utonline
WHERE ip = "$ip" )
![]()