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. eugeniopsp
    3. Post
    E

    eugeniopsp

    @eugeniopsp

    • Profilo
    • Chi segue 0
    • Da chi è seguito 0
    • Discussioni 1
    • Post 5
    • Migliore 0
    • Gruppi 0
    Iscrizione Ultimo Accesso
    0
    Reputazione
    5
    Post
    0
    Visite al profilo
    0
    Da chi è seguito
    0
    Chi segue
    User Newbie

    Post creati da eugeniopsp

    • RE: errore mysql

      non cambia niente , ho provato

      postato in Coding
      E
      eugeniopsp
    • RE: condivisione database

      attenzione, non tutti i server consentono connessioni al database da siti esterni.
      io consiglierei di mettere un database che è hostato su un terzo server(se cerchi su google hosting mysql gratis ne trovi un sacco) così non ci sarebbero problemi di compatibilità varie)

      postato in Coding
      E
      eugeniopsp
    • RE: Maledetta funzione mail

      prova con questa:
      [PHP]
      <?php
      $destinatario = "[email protected]";
      $oggetto = "email di prova";
      $messaggio = "Ecco la mia prima email";
      mail($destinatario, $oggetto, $messaggio);
      ?>
      [/PHP]

      postato in Coding
      E
      eugeniopsp
    • RE: errore mysql

      mi dà quest'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 'AND Velocita >= AND Grafica >= AND Lavoro >= AND Svago >= AN

      postato in Coding
      E
      eugeniopsp
    • errore mysql

      ciao a tutti,
      vorrei capire dove sbaglio:
      ho costruito un codice php per prelevare dal database mysql i valori con where <=
      a quanto pare o non si può fare o ho sbagliato qualcosa altro
      vedete un pò voi
      [PHP]
      <?php
      #converto le variabili con GET#
      $test1 = $_GET['1'] ;
      $test2 = $_GET['2'] ;
      $test3 = $_GET['3'] ;
      $test4 = $_GET['4'] ;
      $test5 = $_GET['5'] ;
      $test6 = $_GET['6'] ;
      #faccio partire la connessione al database#
      $dbhost = 'mysql5.netsons.org';
      $dbusername = xxx';
      $dbpasswd = 'xxx';
      $database_name = 'xxx';
      $connection = mysql_pconnect("$dbhost","$dbusername","$dbpasswd")
      or die ("Couldn't connect to server.");
      $db = mysql_select_db("$database_name", $connection)
      or die("Couldn't select database.");
      session_start();
      $query = mysql_query("SELECT Nome, id FROM SistemiOperativi WHERE Potenza <= $test1
      AND Velocita >= $test2
      AND Grafica >= $test3
      AND Lavoro >= $test4
      AND Svago >= $test5
      AND Esperto <= $test6
      LIMIT 0 , 30
      ") or die (mysql_error());
      i valori in una tabella #
      $result = mysql_query($query) or die('Error, query failed');
      if(mysql_num_rows($result) == 0)
      {
      echo "Database is empty <br>";
      }
      else
      {
      while(list($id, $name) = mysql_fetch_array($result))
      {
      ?>
      <td class="bodyText"><a href="sistemi.php?id=<? echo "{$row[1]}";?>"><? echo "{$row[0]}";?></a> <br></td>
      <?
      }
      }
      ?>
      [/PHP]

      sono accettati tutti i suggerimenti possibili
      grazie

      postato in Coding
      E
      eugeniopsp