1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| echo"<br />";
$result = mysql_query("SELECT speudo,sexe FROM fk_online") or die('<p>Impossible d\'effectuer la requête');
while($rs=mysql_fetch_array($result))
{
$nom=$rs["speudo"];
$sexe=$rs["sexe"];
if ($sexe=="Homme"){
$photo="<img src='design/H.gif' title='Homme'>";
}
elseif ($sexe=="Femme"){
$photo="<img src='design/F.gif' title='Femme'>";
}
else {
$photo="<img src='design/CPL.gif' title='Couple'>";
}
echo"<font size='1'><br><b>$photo $nom </b><a href=\"#\" onClick=\"window.open('detailspopup.php?det=$nom','_blank','toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=600, height=550, right=1, top=0');return(false)\"><img src=\"design/voir.gif\" width=\"20\" heigth=\"25\" border=\"0\" title=\"Profil\"></font></a>
<a href=\"#\" onClick=\"window.open('messa.php?dest=$nom&chat=$chat','_blank','toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=400, height=200, right=1, top=0');return(false)\"><img src=\"design/CHAT.GIF\" width=\"15\" heigth=\"15\" border=\"0\" title=\"chat\"></a> ";require_once'recumessagechat.php';
echo" <br /> " ;
}
echo"<br />"; |
Partager