$dispo){ $paireColonneValeur .= $mois . ' = ' . $dispo . ', '; } } $paireColonneValeur .= "nom = '$nomNvl' "; $reqNvl = "UPDATE $table SET $paireColonneValeur WHERE id = $idElement;"; mysqli_query($c, $reqNvl); } $requeteId = "SELECT * FROM $table WHERE id=$idElement;"; $resultatId = mysqli_query($c, $requeteId); $infoElement = mysqli_fetch_assoc($resultatId); $pageExiste = ($infoElement) ? true : false ; $titrePartDeux = $infoElement['nom']; } } $titrePage = $titrePartUn . ' : ' . $titrePartDeux; $_SESSION['tableDernierElemVu'] = $table; $_SESSION['typeDernierElemVu'] = $type; $_SESSION['idDernierElemVu'] = $idElement; deconnectBD($c); ?>