<?php

	session_start();
	include('config_inc.php'); 	
	
        if($_SESSION['database']=="local")
          {
             $db_host    = "localhost";
             $db_user   = "root";
     	     $db_pass   = "";
    	     $db_name   = "boutique";

  	  }
	
	if($_SESSION['database']=="public")
	  {
  	     $db_host    = "sql2";
   	     $db_user   = "analogde";
 	     $db_pass   = "rainbow";
	     //$db_type   = "mysql";
	     $db_name   = "analogde";
	  }
     	
	$connexion = mysql_connect($db_host,$db_user,$db_pass); 
       	mysql_select_db($db_name, $connexion);

	/*$table = 'clients';
	/*$id = '1';

	/*$email ='patrice.delpy@neuf.com';*/

	$sql = 'SELECT marque,modele,chargement,capacite,essorage,classe,stocke,prix_ttc FROM categorie'; 
  
  	 $requete = "SELECT filtre FROM categorie WHERE table_article='$statut'";	


//	$requete = "SELECT * FROM clients";
    	$result = mysql_query($requete);
    	
    	$infos_produit = mysql_fetch_array($result, MYSQL_NUM);
    	
  	    	print_r($infos_produit);

    	
//	$designation =  $infos_produit[2];
	
//	echo $designation;



	//caracteristiques


       	//$sql = 'SELECT marque,modele FROM lave_linge'; 
  
	//$result = mysql_query($sql);
	
	//print_r($result);

	//var_dump($result);


	
        
        
  	/*    	$infos_produit = mysql_fetch_array($result, MYSQL_NUM);
  	    	$designation =  $infos_produit[2];
		$reference =  $infos_produit[3];
		$marque =  $infos_produit[4];
		
		$garantie =  $infos_produit[6];*/




?>


<?php

/*<form method='post' action='process.php'>
<input type = 'checkbox' name = 'vehicle[]' value = 'car' checked= 'checked'  />Car<br />
<input type = 'checkbox' name = 'vehicle[]' value = 'pickup' />Pickup Truck<br />
<input type = 'checkbox' name = 'vehicle[]' value = 'van' />Full Size Van<br />
<input type = 'checkbox' name = 'vehicle[]' value = 'minivan' />Mini Van<br />
<input type = 'checkbox' name = 'vehicle[]' value = 'suv' />SUV<br />
<input type = 'submit' value ='Enter Data'>
</form>*/





?>