Visualizzazione dei risultati da 1 a 4 su 4

Discussione: Help grazie

  1. #1
    Utente di HTML.it L'avatar di breiko
    Registrato dal
    Jan 2003
    Messaggi
    53

    Help grazie

    Codice PHP:

    $tempo
    time();

    $queryb "INSERT INTO "nome tabella" (creation_date) VALUES ('$tempo') where uid="$uid" "
    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 'where uid=29d7095aa61752f903f7db39ec785eb6' at line 1

    dove sbaglio?

  2. #2
    Innanzitutto nel titolo...
    http://forum.html.it/forum/showthrea...hreadid=412253

    codice:
    $nome_tabella = "tab";
    $queryb = "INSERT INTO ".$nome_tabella." (creation_date) VALUES ('$tempo') where uid=".$uid;
    Talvolta anche una persona apparentemente inutile si rivela un abile samurai dalla forza di mille uomini, dimostrando di poter rinunciare alla vita e che il suo cuore si è completamente identificato con quello del suo padrone

  3. #3
    Utente di HTML.it L'avatar di breiko
    Registrato dal
    Jan 2003
    Messaggi
    53
    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 'creation_date VALUES '1089387219' where uid=29d7095aa61752f903f

    Codice PHP:
    $tempotime();

    $queryb "INSERT INTO ".$_CONFIG['table_sessioni']." creation_date VALUES '$tempo' where uid=".$uid." ";
    $result mysql_query($queryb) or die(mysql_error()); 

    ps Scusate per il titolo

  4. #4
    Riscrivi il thread
    Addio Aldo, amico mio... [03/12/70 - 16/08/03]

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 © 2024 vBulletin Solutions, Inc. All rights reserved.