MàJ entête + mineures
This commit is contained in:
parent
90be5dd519
commit
33623b0aa1
4 changed files with 12 additions and 9 deletions
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
$c = seConnecter();
|
||||
<?php
|
||||
|
||||
$titrePartUn = '???';
|
||||
$titrePartDeux = '???';
|
||||
|
@ -8,6 +7,7 @@ $pageExiste = false;
|
|||
|
||||
$type = NULL;
|
||||
$table = NULL;
|
||||
$idElement = NULL;
|
||||
|
||||
|
||||
if (isset($_GET['type'])){
|
||||
|
@ -55,11 +55,9 @@ if (isset($_GET['type'])){
|
|||
mysqli_query($c, $reqNvl);
|
||||
}
|
||||
|
||||
$requeteId = "SELECT * FROM $table WHERE id=$idElement;";
|
||||
$resultatId = mysqli_query($c, $requeteId);
|
||||
$infoElement = mysqli_fetch_assoc($resultatId);
|
||||
$infoElement = ($table) ? getElementWithElementId($idElement, $table) : false;
|
||||
$pageExiste = ($infoElement) ? true : false ;
|
||||
$titrePartDeux = $infoElement['nom'];
|
||||
$titrePartDeux = ($pageExiste) ? $infoElement['nom'] : $titrePartDeux;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -69,6 +67,4 @@ $titrePage = $titrePartUn . ' : ' . $titrePartDeux;
|
|||
$_SESSION['tableDernierElemVu'] = $table;
|
||||
$_SESSION['typeDernierElemVu'] = $type;
|
||||
$_SESSION['idDernierElemVu'] = $idElement;
|
||||
|
||||
deconnectBD($c);
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue