la tienne

This commit is contained in:
2024-04-18 13:08:25 +02:00
parent 0b2b400091
commit 6b8034b359
2 changed files with 40 additions and 8 deletions

View File

@@ -1,5 +1,10 @@
<?php
function getJoueursPartie(int $idpartie)
{
return get_infos_requete("SELECT * FROM joue JOIN joueur J USING(idjoueur) WHERE joue.idpartie = " . $idpartie . " ORDER BY rang")['instances'];
}
function getCardsName(int $idpartie)
{
$cartes = get_infos_requete("SELECT img FROM carte JOIN est_compose USING(idcarte) JOIN partie USING(idplateau) WHERE idpartie = " . $idpartie . " ORDER BY rang")['instances'];