oui, c'est les collones d'un tableau...
code :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
[ Lien ]">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>TS Secure CS Version 4.0 - Bienvenue <?php echo $_COOKIE['connect_login']; ?> !</title>
<link href="../design.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="60%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><img src="images/logo.gif" width="844" height="112"></td>
</tr>
<tr>
<td width="31%" height="670" valign="top"><?php include("include/index.php"); ?></td>
<td width="69%" valign="top" class="separation">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td height="57" align="center" valign="middle"><img src="images/icones/membres_connect.gif" width="279" height="29"></td>
</tr>
<tr>
<td height="20" align="center" valign="middle"></td>
</tr>
<tr>
<td height="10" align="left" valign="middle"><?php
$db = mysql_connect("$sql_host", "$sql_user", "$sql_pass") or die(mysql_error());
mysql_select_db("$sql_bdd",$db);
$query = "SELECT * FROM $tb_membres ";
$result = mysql_query($query) or die (mysql_error()); ?>
<center><table width="95%" border="1" cellpadding="0" cellspacing="0" bordercolor="#B4C4CB">
<tr>
<td width="23%" align="center" valign="middle" bgcolor="#DFE4EA"><strong>Avatar</strong></td>
<td width="25%" align="center" valign="middle" bgcolor="#DFE4EA"><strong>Pseudo</strong></td>
<td width="17%" align="center" valign="middle" bgcolor="#DFE4EA"><strong>Age</strong></td>
<td width="23%" align="center" valign="middle" bgcolor="#DFE4EA"><strong>Sexe</strong></td>
<td width="12%" align="center" valign="middle" bgcolor="#DFE4EA"><strong>Online</strong></td>
</tr>
<?php while ($row = mysql_fetch_array($result))
{
$login = $row[login]; ?>
<tr>
<td align="center" valign="middle"><?php if ($row['avatar'] == true)
{
?>
<a href="<?php echo "http://www.astuce-et-creation.com/Script_membre/script/login/details.php?id=".$row['User_Login']; ?>"><img name="avatar" src="<?php echo $row['avatar']; ?>" width="87" height="88" border="0"></a>
<?php
}
else
{
?>
<a href="<?php echo "http://www.astuce-et-creation.com/Script_membre/script/login/details.php?id=".$row['User_Login']; ?>"><img name="avatar" src="
[ Lien ]" width="87" height="88" border="0"></a>
<?php
}?></td>
<td align="left"><a href="
[ Lien ] echo $row['User_Login']; ?>"><?php echo $row['User_Login']; ?></a></td>
<td align="left"><?php if ($row['age'] == true)
{
?>
<?php echo $row['age']; ?>
<?php
}
else
{
?>
Inconnu
<?php
}?></td>
<td align="left" id="sex"><?php if ($row['sexe'] == true)
{
?>
<?php echo $row['sexe']; ?>
<?php
} else {
?>
Inconnu
<?php
}
$_query2 = mysql_query("SELECT * FROM $tb_connect WHERE login");
?> </td>
<td width="12%" align="center" valign="middle"><?php while($row2 = mysql_fetch_array($_query2)) { if($row[User_Login] == $row2[login]) { echo'<img src="images/contact_connect.gif" alt="Online" width="25" height="25" border="0">'; } else { echo ""; }} ?></td>
</tr><?php
if($row['sexe'] == "femme") {
?>
<script type="text/javascript">
document.getElementById('sex').style.background = "#FC48EB";
</script>
<?php
} else if($row['sexe'] == "homme") {
?>
<script type="text/javascript">
document.getElementById('sex').style.background = "#2A5BF4";
</script>
<?php
} else {
?>
<script type="text/javascript">
document.getElementById('sex').style.background = "#636767";
</script>
<?php
}
}
a++
PS : c'est plus du php que du js...
Si la réponse vous convient, pensez : Réponse accepté !