You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Récupération des résultats de la requête dans un tableau
$result = $pdo->query('SELECT Nom_Chaine,Nb_vues,Nb_likes, Nb_Jours_Tendance,Category_Id FROM Chaine,Video,Categorie WHERE Video.Chaine_ID=Chaine.ID_Chaine and Categorie.Category_Id=Video.Categorie_ID and Nb_Jours_Tendance>6 group by Nom_Chaine order by Nb_Jours_Tendance DESC')
->fetchAll(PDO::FETCH_NUM);
// On ajoute les noms de colonne au début du tableau
array_unshift($result, array("Nom de la chaine","nb vues","nb lkes","Nombre de jours en tendance","catégorie"));