<?

// TITRE Page //
echo "<div class='titre-text'><center>Entr&#233es Abattoirs</div></center><br>" ;
//

echo "<OPTION VALUE='0' SELECTED>Toutes</OPTION>\n";

$last_num_entre = 0 ;
$sql = "SELECT max(num_ligne) FROM saisies_abat";  
$req = mysqli_query($link, $sql); 
$row = mysqli_fetch_row($req);
$last_num_entre = $row[0];
$last_num_entre = $last_num_entre + 1 ;

$req = mysqli_query($link, $sql); 

$res = mysqli_query($link, $sql);

$result = mysqli_query($link, $select);

$sql = "SELECT Let_Client FROM clients WHERE Num_Client='$num_client_decoupe'";  
$req = mysqli_query($link, $sql);
while ($row = mysqli_fetch_assoc($req)) {$Let_Client = $row["Let_Client"];}  
	
$sql = "SELECT CategoriePlu FROM categorieplu WHERE Num_CatPlu='$categorie_plu'";  
$req = mysqli_query($link, $sql);  
while ($row = mysqli_fetch_assoc($req)) {
        $categorie_plu_decoupe = $row["CategoriePlu"];
    }     

<select name='Num_client_liv' id='Num_client_liv' style='width:150px' onchange='submit()'>
	
format nombre : $poids_qtv = number_format($poids_qtv, 3, '.', ' ')	;

conversion texte html $nom_plu_temp = htmlspecialchars($nom_plu_temp, ENT_QUOTES);
$nom_plu_intrant = htmlentities($nom_plu_intrant, ENT_QUOTES);
$nom_plu_intrant = html_entity_decode ($nom_plu_intrant, ENT_QUOTES);

Majuscule : $num_lot_decoupe=strtoupper ($num_lot_decoupe) ;
revoie semaine  $semaine_decoupe=date("W", strtotime($date_decoupe));
renvoie date base $date_decoupe_ok=date("d/m/Y", strtotime($date_decoupe));

renvoi a la page  ! 	

$refere = $_SERVER['HTTP_REFERER'] ;
Header("Location:  $refere") ;

// Get ou Post existe ou pas ?
if (!isset($_GET['ordre'])) { 
		// Transmis en POST
		$num_ordre=$_POST['ordre'];
		if (isset($_POST['Num_Fabric'])) { $num_fabric=$_POST['Num_Fabric']; }  else {$num_fabric=''; }
		if (isset($_POST['TypeFabric'])) { $type_fabric=$_POST['TypeFabric']; } else {$type_fabric=''; }
		$valForm="POST" ;
} else {
		// Transmis en GET
		$num_ordre=$_GET['ordre'];
		if (isset($_GET['Num_Fabric'])) { $num_fabric=$_GET['Num_Fabric']; }  else {$num_fabric=''; }
		if (isset($_GET['TypeFabric'])) { $type_fabric=$_GET['TypeFabric']; } else {$type_fabric=''; }
		$valForm="GET" ;
}


?>