$query->execute();
while ($line = $query->fetch()) {
    setcookie("jourMatch", $line["j"], time() + 86400);
    $_COOKIE["jourMatch"] = $line["j"];
    setcookie("heureMatch", $line["h"], time() + 86400);
    $_COOKIE["heureMatch"] = $line["h"];
    setcookie("typeMatch", $line["t"], time() + 86400);
    $_COOKIE["typeMatch"] = $line["t"];
}
?>
<div class='marg'>
    <h1>Récapitulatif</h1>
    <div class="contour">
        <p>
            <label class = 'strong'>Tour : </label><?php 
echo getTour($_COOKIE["jourMatch"]);
?>
        </p>
        <p>
            <label class = 'strong'>Match : </label><?php 
echo getVs($_COOKIE["idMatch"], $_COOKIE["typeMatch"]);
?>
        </p>
        <p>
            <label class = 'strong'>Court : </label><?php 
echo getCourt($_COOKIE["idMatch"]);
?>
        </p>
        <p>
            <label class = 'strong'>Emplacement : </label><?php 
echo $_COOKIE["place"];
Esempio n. 2
0
$query = $bdd->prepare($SQL_Query);
$query->execute();
$SQL_Query = 'select max(idFacture) as m from Facture';
$query = $bdd->prepare($SQL_Query);
$query->execute();
$idFacture = 0;
while ($line = $query->fetch()) {
    $idFacture = $line["m"];
}
$pdf = new PDF();
$pdf->AddPage();
$pdf->SetFont('Arial', '', 12);
$html = '
<table border="1">
<tr>
<td width="200" height="50">Tour</td><td width="400" height="50">' . getTour($_COOKIE["jourMatch"]) . '</td>
</tr>
<tr>
<td width="200" height="50">Match</td><td width="400" height="50">' . getVs($_COOKIE["idMatch"], $_COOKIE["typeMatch"]) . '</td>
</tr>
<tr>
<td width="200" height="50">Court</td><td width="400" height="50">' . getCourt($_COOKIE["idMatch"]) . '</td>
</tr>
<tr>
<td width="200" height="50">Emplacement</td><td width="400" height="50">' . $_COOKIE["place"] . '</td>
</tr>
<tr>
<td width="200" height="50">Date</td><td width="400" height="50">' . getJour($_COOKIE["jourMatch"]) . '</td>
</tr>
<tr>
<td width="200" height="50">Heure</td><td width="400" height="50">' . getHeure($_COOKIE["heureMatch"]) . '</td>