Citation :
 
 
   <table border cellpadding = 10 cellspacing = 3>
   <tr><td>Nom</td><td>Note</td><td>Difficulte</td><td>Temps (en min)</td><td>Description</td></tr>
   <?php
 include ("bdd.php" );
 $choix_note = NULL ;
 $choix_temps = NULL ;
 $choix_difficulte = NULL ;   $choix_login = NULL ;
 $temps_min = 0;
 $temps_max = 100000;
   if($_GET['note'] != NULL )
  $choix_note = $_GET['note'] ;
  
 if($_GET['note'] != NULL )
  $choix_login = $_GET['login_createur'] ;
  
 if($_GET['difficulte'] != NULL && $_GET['difficulte'] != 0)
  $choix_difficulte = $_GET['difficulte'] ;
  
 if($_GET['temps'] != NULL ) {
  $choix = $_GET['temps'] ;
  if ($choix == 'Moins de 30 min')
  	{
  	$temps_max = 30;
  	}
  if ($choix == '30 min - 1h')
  	{
  	$temps_min = 30 ;
  	$temps_max = 60;
  	}
  if ($choix == '1h - 1h30')
  	{
  	$temps_min = 60 ;
  	$temps_max = 90;
  	}
  if ($choix == '1h30 - 2h')
  	{
  	$temps_min = 90 ;
  	$temps_max = 120;
  	}
  if ($choix == 'Plus de 2h')
  	{
  	$temps_min = 120 ;
  	}
      	echo $temps_min,'  -  ',$temps_max ;
  }
  
 // if($_GET['lieu'] != NULL )
  // $choix_lieu = $_GET['lieu'];
   echo $choix_note ;
   $query = "SELECT IDparcours, nom, description, note, temps, difficulte, login FROM parcours, joueurs
 WHERE joueurs.IDjoueur = parcours.IDcreateur AND temps <= $temps_max AND temps >= $temps_min   AND difficulte = $choix_difficulte   AND note >= $choix_note ";
   $result=mysql_query($query)  or die(mysql_error()) ;
    while ($row = mysql_fetch_row($result))	{
    	$IDparcours = $row[0] ;
    	$nom = $row[1] ;
    	$description = $row[2] ;
    	$note = $row[3] ;
    	$temps = $row[4] ;
    	$difficulte = $row[5] ;
    	$login = $row[6];
          echo '<tr><td>',$nom,'</td><td>',$note,'</td><td>',$difficulte,'</td><td>',$temps,'</td><td>',$description,'</td></tr>';
               }	// boucle de lecture des réponses
     ?>
   |