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

    problema aggiornamento data

    Salve sto cercando di aggiornare un campo del database "timestamp":

    Codice PHP:
    @mysql_query("UpDate From user_remote SET Data=Now() Where IDuser='".$RecIp["IDuser"]."'") or die (mysql_error()); 
    mi da questo errore:
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'From user_remote SET Data=Now() Where IDuser='8211450183'' at line 1

  2. #2
    Codice PHP:
    mysql_query("UPDATE user_remote SET Data=Now() WHERE IDuser='$RecIp[IDuser]'") or die (mysql_error()); 
    PHP LEARN - Guide, tutorial e articoli sempre aggiornati
    NUOVO: standardLib; il potente framework PHP é ora disponibile
    *******************************************
    Scarica oggi la tua copia di MtxEventManager

  3. #3
    e si hai perfettamente ragione non me ne sono accorto del from

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.