bonjours tlm
alors voila j’ai voulue faire un affichage sur n colonne pour afficher des photo et autre a parti de donné venant de sql apres recherche j’ai trouver un bou de code sur le net mais celui ci saute le tout 1er enregistrement de SQL sachant que celui ci a l’idx la plus haut
<div id="content">
<div class="post">
<div id="center">
<div class="googlebar">
<?php
$nb_results = 7; // nombre de donnée par page
googleBarre("SELECT count(idx) FROM trombino WHERE actif = 1", $nb_results, 4, 4, 1, 1);
$query_trombino = "SELECT *, DATE_FORMAT(date, '$site_date_jh') AS dateh FROM trombino WHERE actif = 1 ORDER BY date DESC LIMIT $start, $nb_results ";
$trombino = mysql_query($query_trombino, $trombinoV3) or die(mysql_error());
$row_trombino = mysql_fetch_assoc($trombino);
?>
</div>
<?
while($row_trombino = mysql_fetch_array($trombino)) {
$t[] = $row_trombino;
}
?>
<table border="0">
<?
$n = 2;
for($i = 0; $i <= (count($t) - 1); $i ++) {
if ($i % $n == 0) {
?>
<tr>
<?
}
?>
<td><div class="article-box">
<div class="article-body">
<div class="photo"><a href="photo.php?id=<?php echo $t[$i]['idx'] ?>" onClick="window.open(this.href,'photo','location=no,toolbar=no,resizable=yes'); return false;"><img src="<?php echo $target."thumb_".$t[$i]['img']; ?>" width="150" border="0" alt="<?php echo "thumb_".$t[$i]['img']; ?>" /></a> </div>
<div>
<div><b><a href="index.php?idx=<?php echo $t[$i]['idx']; ?>">
<?php echo $t[$i]['pseudo'] ?>
<img src="img/<?php echo $t[$i]['sexe']; ?>.gif" alt="<?php echo $t[$i]['sexe']; ?>" /></a></b> </div>
<div class="vote">
<?php if ( $t[$i]['vote'] == 1 && $auto_vote == 1 )
{
echo rate2( $t[$i]['idx'] );
}?>
</div>
</div></td>
<?
if ($i % $n == (2)) {
?>
</tr>
<?
}
}
?>
</table>
</div>
<div class="feedback"> </div>
</div>
?>