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

    problema cont abella database

    ciao a tutti.

    ho un database chiamato "keydownload" con una tabella all'interno chiamata "key", ho fatto questa query:

    Codice PHP:
    ...
    $QueryKey=mysql_query("Select Key from keydownload Order by Data Desc") or die (mysql_error()); 
    ma 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 'Key from keydownload Order by Data Desc' at line 1

    eppure mi sembra di non aver fatto errori o non vedo qualcosa????

  2. #2
    proviamo per gradi, magari non fa lo stesso, ma proviamo

    Codice PHP:
    $QueryKey=mysql_query("SELECT Key FROM keydownload ORDER BY Data DESC") or die (mysql_error()); 

    Fammi sapere

  3. #3

    Re: problema cont abella database

    Originariamente inviato da techno
    ciao a tutti.

    ho un database chiamato "keydownload" con una tabella all'interno chiamata "key", ho fatto questa query:

    Codice PHP:
    ...
    $QueryKey=mysql_query("Select Key from keydownload Order by Data Desc") or die (mysql_error()); 
    ma 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 'Key from keydownload Order by Data Desc' at line 1

    eppure mi sembra di non aver fatto errori o non vedo qualcosa????
    key e' una parola riservata. Cambiare il nome del campo e' la scelta migliore.

    qui trovi le sue sorelle.

    http://dev.mysql.com/doc/refman/5.0/...ved-words.html

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

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.