You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
815 B
27 lines
815 B
<?php
|
|
session_start();
|
|
require_once "ConnexionBDD.php";
|
|
//Actualisation de l'IDpartie
|
|
$idparte = $_SESSION['idpartie'];
|
|
echo "<h2 class='contientphp' id='ids'>Identifiant partie : <strong>$idparte</strong></h2>";
|
|
echo "<input type='text' class='myInput contientphp' value='$idparte' id='myInput'>";
|
|
|
|
|
|
//Actualisation des cartes
|
|
$idpartie= $_SESSION['idpartie'];
|
|
$db=new MyDB();
|
|
$afficher = $db->query('SELECT * FROM partieCartes where IdPartie="'.$idpartie.'" ');
|
|
$tableau =[];
|
|
while ($row = $afficher->fetchArray()) {
|
|
$un=$row['colUn'];
|
|
$deux=$row['colDeux'];
|
|
$trois=$row['colTrois'];
|
|
$tout=$un.','.$deux.','.$trois;
|
|
// $entier=$entier+1;
|
|
array_push($tableau,$tout);
|
|
}
|
|
$_SESSION['listecartebdd']=$tableau;
|
|
//foreach ($tableau as $val) {
|
|
// echo "<h2 class='contientphp'> $val </h2>";
|
|
//}
|