Visualizzazione dei risultati da 1 a 4 su 4
  1. #1
    Utente di HTML.it L'avatar di Lino80
    Registrato dal
    Oct 2005
    Messaggi
    1,560

    errore You have an error in your SQL syntax; check the manual that corresponds to you

    ciao, ho questo errore nella query:

    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 by regione asc' at line 1

    Codice PHP:
        $state mysql_query('select * from regioni where id = ' $row_p['state'] . 'order by regione asc',$myconn) or die(mysql_error()); 
    cosa sbaglio?

    grazie

  2. #2
    prova cosi':

    Codice PHP:
    $state mysql_query("select * 
                              from regioni 
                              where id = '" 
    $row_p['state'] . "'  
                              order by regione asc"
    $myconn
                              or die(
    mysql_error()); 

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

  3. #3
    Utente di HTML.it L'avatar di luca200
    Registrato dal
    Apr 2002
    Messaggi
    4,120
    Suppongo che $row_p['state'] non contenga nulla

  4. #4
    Utente di HTML.it L'avatar di Lino80
    Registrato dal
    Oct 2005
    Messaggi
    1,560
    grazie mille..ora vedo..

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.