Je pense que tu confond plusieurs choses à la vue de ton code.
Il y a plusieurs façon d'afficher du HTML avec php.
soit tu met tous dans une variable et ensuite tu l'affiche,
soit tu affiche chaque bout de code l'un à la suite de l'autre.
Mais là tu nous fait un beau mélange des 2 qui ne marche pas
Je vais corriger ton code avec la première méthode
$url_photo = ((file_exists('wall/media/profile/'.$femme['picture'])) ? '' : 'photo_') . $femme['picture'];
$sHTML .='
<tr style="margin-top: 30px; border: 1px solid black;">
<td width="112" style="text-align: center;"><a href="http://www.jrencontre.fr/'.$femme['username'].'" target="_blank" rel="noreferrer">
[b] <img src="wall/media/profile/'.$url_photo.'" border="0" width="190" height="300" style="max-height: 200px; border: 1px solid #cccccc; display: block"><br>[/b]
<br><strong style="font-size: 12px; color: #9999FF">'.$femme['username'].'</strong>
<br><a href="http://www.jrencontre.fr/'.$femme['username'].'" target="_blank" rel="noreferrer"><img src="http://www.jrencontre.fr/wall/profil.png" alt="Voir son profil" border="0"></a></td>
<td width="148" style="font-size: 11px"></td>
<td width="112" style="text-align: center;"><a href="http://www.jrencontre.fr/'.$oOldFemme['username'].'" target="_blank" rel="noreferrer"><img src="http://www.jrencontre.fr/wall/media/profile/'.$oOldFemme['picture'].'" border="0" width="190" height="300" style="max-height: 200px; border: 1px solid #cccccc; display: block"></a><br><strong style="font-size: 12px; color: #9999FF">'.$oOldFemme['username'].'</strong>
<br><a href="http://www.jrencontre.fr/'.$oOldFemme['username'].'" target="_blank" rel="noreferrer"><img src="http://www.jrencontre.fr/wall/profil.png" alt="Voir son profil" border="0"></a></td>
<td width="148" style="font-size: 11px"></td>
</tr>';
Cette ligne :
$url_photo = ((file_exists('wall/media/profile/'.$femme['picture'])) ? '' : 'photo_') . $femme['picture'];
est une forme ternaire de condition je crée donc une variable contenant le nom de la photo en y ajoutant un prefix si le fichier sans prefix n’existe pas.
Je pense que tu confond plusieurs choses à la vue de ton code.
Il y a plusieurs façon d'afficher du HTML avec php.
soit tu met tous dans une variable et ensuite tu l'affiche,
soit tu affiche chaque bout de code l'un à la suite de l'autre.
Mais là tu nous fait un beau mélange des 2 qui ne marche pas
Je vais corriger ton code avec la première méthode
[php]
$url_photo = ((file_exists('wall/media/profile/'.$femme['picture'])) ? '' : 'photo_') . $femme['picture'];
$sHTML .='
<tr style="margin-top: 30px; border: 1px solid black;">
<td width="112" style="text-align: center;"><a href="http://www.jrencontre.fr/'.$femme['username'].'" target="_blank" rel="noreferrer">
[b] <img src="wall/media/profile/'.$url_photo.'" border="0" width="190" height="300" style="max-height: 200px; border: 1px solid #cccccc; display: block"><br>[/b]
<br><strong style="font-size: 12px; color: #9999FF">'.$femme['username'].'</strong>
<br><a href="http://www.jrencontre.fr/'.$femme['username'].'" target="_blank" rel="noreferrer"><img src="http://www.jrencontre.fr/wall/profil.png" alt="Voir son profil" border="0"></a></td>
<td width="148" style="font-size: 11px"></td>
<td width="112" style="text-align: center;"><a href="http://www.jrencontre.fr/'.$oOldFemme['username'].'" target="_blank" rel="noreferrer"><img src="http://www.jrencontre.fr/wall/media/profile/'.$oOldFemme['picture'].'" border="0" width="190" height="300" style="max-height: 200px; border: 1px solid #cccccc; display: block"></a><br><strong style="font-size: 12px; color: #9999FF">'.$oOldFemme['username'].'</strong>
<br><a href="http://www.jrencontre.fr/'.$oOldFemme['username'].'" target="_blank" rel="noreferrer"><img src="http://www.jrencontre.fr/wall/profil.png" alt="Voir son profil" border="0"></a></td>
<td width="148" style="font-size: 11px"></td>
</tr>';[/php]
Cette ligne :
$url_photo = ((file_exists('wall/media/profile/'.$femme['picture'])) ? '' : 'photo_') . $femme['picture'];
est une forme ternaire de condition je crée donc une variable contenant le nom de la photo en y ajoutant un prefix si le fichier sans prefix n’existe pas.