1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <?php
try
{
$get_pdo;
$req = $bdd->prepare('SELECT DISTINCT flashed_profil_id, flashed_profil_pseudo FROM flash WHERE profil_id=? ');
$req->execute(array($user_profil_id));
print "<table><tr>";
while ($donnees = $req->fetch())
{
print '<td>
<table>
<tr><td width="120px"><a style="width:100%" href="'.$site_root.'profil.html?id='.$donnees['flashed_profil_id'].'"><img class="adimage" src="'.$site_root.'images/com_adsmanager/ads/'.$donnees['flashed_profil_id'].'a_t.jpg" /></a></td></tr>
<tr><td><a href="'.$site_root.'profil.html?id='.$donnees['flashed_profil_id'].'">'.$donnees['flashed_profil_pseudo'].'</a></td></tr>
</table>
</td>';
}
print "</tr></table>";
$req->closeCursor();
}
catch(Exception $e)
{
die('Erreur : '.$e->getMessage());
}
?> |
Partager