Variable dans un chemin d'accés

Résolu/Fermé
SPARTAN-117 - 15 juin 2009 à 00:01
 SPARTAN-117 - 15 juin 2009 à 00:06
Bonsoir,
Je voudrais savoir comment entrez une variable dans mon chemin d'accés
<img src="uploads/$mavariable.jpg" alt="avatar"/>

cela afin d'afficher l'image portant le nom de la personne (son avatar)?

Merci d'avance.

2 réponses

ACervoise Messages postés 216 Date d'inscription mercredi 3 juin 2009 Statut Membre Dernière intervention 21 juin 2010 85
15 juin 2009 à 00:04
Un truc comme ça :

<img src="uploads/<?php echo $mavariable; ?>.jpg" alt="avatar" />
0
SPARTAN-117
15 juin 2009 à 00:06
Merci beaucoup, j'avais pas pensé a sa merci encore
0