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 29 30 31 32 33 34
|
<center><table width="800px" cellspacing="0px" cellpadding="0px"><tr>
<?php
mysql_connect("xxx", "xxx", "xxx");
mysql_select_db("xxx");
$retour = mysql_query('SELECT a.id,a.first_name,a.last_name, a.id_body, a.id_flag,b.id,b.image_body,c.id,c.country,c.image_flag FROM wof_name AS a, wof_body AS b, wof_flag AS c WHERE a.id_body=b.id AND a.id_flag=c.id ORDER BY a.last_name ASC');
$i=1;
while ($donnees = mysql_fetch_array($retour))
{
$flag=$donnees['image_flag'];
$body=$donnees['image_body'];
$first_name=$donnees['first_name'];
$last_name=$donnees['last_name'];
?>
<td><?php echo $flag; ?></td>
<td><?php echo $body; ?></td>
<td><p><?php echo $first_name; ?><br/><?php echo $last_name; ?></p></td>
<?php
if ($i%5 == 0)
{
?>
</tr>
<tr>
<?php
} ?>
<?php
$i++;
}
mysql_close();
?>
</tr>
</table></center> |
Partager