Navigazione

    Privacy - Termini e condizioni
    © 2020 Search On Media Group S.r.l.
    • Registrati
    • Accedi
    • CATEGORIES
    • Discussioni
    • Non letti
    • Recenti
    • Hashtags
    • Popolare
    • Utenti
    • Stream
    • Interest
    • Categories
    1. Home
    2. Categorie
    3. Coding e Sistemistica
    4. Coding
    5. Errore MySQL strano
    Questa discussione è stata cancellata. Solo gli utenti con diritti di gestione possono vederla.
    • N
      naeemi User • 7 lug 2007, 15:36 ultima modifica di

      Errore MySQL strano

      ciao a tutti , spero qualcuno possa aiutarmi .... ho questo codice php :

      $qvr=mysql_query("SELECT * from comuni where frn_region='".$province."' order by city Asc") or die(mysql_error());
      if (mysql_num_rows($qvr)>0)
      {
      while($rig=mysql_fetch_array($qvr))
      {
      $p.="<h2 class="h2link"><a href='".$site['dir'].$rig['cityid']."citta-".str_replace(" ","_",strtolower($rig['city'])).".html' class="lien" title="alberghi ".strtolower($rig['city'])." , albergo ".strtolower($rig['city'])." , hotel ".strtolower($rig['city'])." , motel ".strtoupper($rig['city']).""><b> Hotel ".$rig['city']." </b></a></h2>";
      }
      }

      NON VEDO NULLA DI STRANo .... ma ricevo 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 ')' at line 1

      0 Miglior Risposta Ringrazia Cita Rispondi

        1 Risposta Ultima Risposta
        Caricamento altri post
        Rispondi
        • Topic risposta
        Effettua l'accesso per rispondere
        • Da Vecchi a Nuovi
        • Da Nuovi a Vecchi
        • Più Voti
         

      • M
        mz User Attivo • 8 lug 2007, 13:58 ultima modifica di

        Sembra corretto..

        prova a fare la query cosi:

        $qvr=mysql_query("SELECT * from comuni where frn_region=$province order by city Asc") or die(mysql_error());

        dimmi se risolvi.

        :ciauz:

        0 Miglior Risposta Ringrazia Cita Rispondi

          1 Risposta Ultima Risposta
        Caricamento altri post
        Rispondi
        • Topic risposta
        Effettua l'accesso per rispondere
        • Da Vecchi a Nuovi
        • Da Nuovi a Vecchi
        • Più Voti