Identifiant partie : $idparte"; echo ""; //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 "

$val

"; //}