Display in two row instead of one column

Hello Everyone,

It does work fine when displaying in six rows but i like to display it in 2 rows of three cells,
Does anybody know how i can modify this code? Please , please…

$sql = "SELECT * FROM items ORDER BY id ASC";
$query = mysql_query($sql);
while ($row = mysql_fetch_array($query)) {
?>
<li>
<?php if (check_ip($row['id'],get_real_ip()) == 0) { ?>
<a href="javascript:void();" class="like" id="<?php echo $row['id']; ?>">Like <span><?php echo likes($row['id']); ?></span><?php echo "<img src='".$row["item"]."'>" ?></a>
<?php } else { ?>
<a href="javascript:void();" class="liked">Liked <span><?php echo likes($row['id']); ?></span><?php echo "<img src='".$row["item2"]."'>" ?></a>
<?php } ?>
</li>
<?php }

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.