Bonjour à tous,
Je suis actuellement bloqué, j'explique mon problème.
Pour commencer voici mon code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17$StrSql2 = mysql_query( "SELECT * FROM `" . VIDEO_TABLE . "` ORDER BY date" ); while( $membre = mysql_fetch_array( $StrSql2 ) ) { $StrSql3 = mysql_query("SELECT `pseudo`, `avatar` FROM `" . USER_TABLE . "` WHERE `id` = '" . mysql_real_escape_string( $membre['auteur_id'] ) . "'"); list( $mbr_pseudo, $mbr_avatar ) = mysql_fetch_array( $StrSql3 ); $mbr_pseudo = htmlentities( $mbr_pseudo, ENT_QUOTES ); $mbr_photo = ( empty( $mbr_avatar ) ) ? 'modules/User/noavatar.gif' : $mbr_avatar; ?> <img src="<?php echo $mbr_photo; ?>" alt="<?php echo $mbr_pseudo; ?>" width="72" height="72" /> <?php }
Donc enfaite ma requête fonctionne j'ai bien l'avatar des derniers membres qui ont ajouter une vidéo qui s'affiche.
Le soucis c'est que un membre ayant poster par exemple 4 vidéo aura alors son avatar d'afficher 4 fois.
Je voudrait alors faire en sorte qu'il n'y ait qu'une seul fois son avatar d'afficher.
Comment je pourrait donc s'il vous plait empecher ceci.






Répondre avec citation
Partager