Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    [MySQL] Sintassi...dove è l'errore?

    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


    Codice PHP:
    UPDATE utenti SET  `arm`  =  "3" WHERE idutente = ( SELECT id_utente
    FROM utonline
    WHERE ip 
    =  "$ip
    Così non gira...
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  2. #2
    Prova cosi':

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


    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  3. #3
    Grazie.

    p.s.io vado al mare, ci vediamo a luglio.
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.