<?php
	session_start ();
	include('database.php');
	DB_connexion(); 
	include('fonctions.php');

	
	charger_configuration();
	
	$table = "copy_gestion";
	
	$sql = "SELECT * FROM " .$table;
	
	echo $sql;
	
	mysqli_query($connexion, "SET NAMES 'utf8'");
	$result = mysqli_query($connexion, $sql );
	
	if(!$result)
	{
		die('Impossible d\'exécuter la requête :' . mysql_error());
	}

	$n = mysqli_num_rows($result);	
	
	echo $n; 	
	echo "<br>";
	
	$formule_val = "courte";
/*	
	for( $i=1; $i <= $n ; $i++)		
	{ 
		$sql = "UPDATE " .$table ." SET formule = '$formule_val' WHERE id ='$i' ";	
		echo $sql; 	
		echo "<br>";
		mysqli_query($connexion, $sql );

	}	
	
*/	
	
			
	//echo "Données enregistées";	
	//echo '<br><br>';
	
?>	
