Visualizzazione dei risultati da 1 a 3 su 3

Discussione: errore mysql

  1. #1
    Utente di HTML.it
    Registrato dal
    Aug 2007
    Messaggi
    123

    errore mysql

    ciao a tt..

    Ho 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 'order) VALUES ('', '1', 'News', 'es. titotolo.', 'testo
    ', '1167606000', NOW()' at line 1

    $query = "INSERT INTO tabella_news (tid, aid, type, title, content, date, order) VALUES ('$telefilm', '$aid', '$tipo', '$titolo', '$testo', '$data', NOW()*1 )";

    come risolvo?
    grzie ciaoo

  2. #2
    VALUES ('', '1', '..............

    Nella colonna TID non è obbligatoria?
    ..:: GSFLASH ::..
    HTTP://WWW.GSFLASH.IT
    MCTS - ACP - OCP - ECDL
    Ubuntu 7.10/OpenSuse 10.3/Vista Premium/MacOSX Leopard
    My authentic japanese name is 薗田Sonoda (garden field) 大河 Taiga (big river)

  3. #3
    Utente di HTML.it L'avatar di nicola75ss
    Registrato dal
    Nov 2004
    Messaggi
    12,923

    Re: errore mysql

    Originariamente inviato da Pablo90
    ciao a tt..

    Ho 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 'order) VALUES ('', '1', 'News', 'es. titotolo.', 'testo
    ', '1167606000', NOW()' at line 1

    $query = "INSERT INTO tabella_news (tid, aid, type, title, content, date, order) VALUES ('$telefilm', '$aid', '$tipo', '$titolo', '$testo', '$data', NOW()*1 )";

    come risolvo?
    grzie ciaoo
    Order è una parola riservata. Metti il nome del campo tra backtick (`) o meglio rinomina il campo.

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.