Hi guys, need help with the following issue:
[code=php]
<?php
if(!isset($action)) {
$query=mysql_query(“SELECT * FROM products ORDER BY id LIMIT 6”) or die (“Cant select products: ” . mysql_error());
while($rows=mysql_fetch_array($query)) {
echo “<div class=’view_block_produs’>”;
echo “<a href=’index.php?go=products&action=view&catid=$catid&id=$rows[id]’ class=’view_produs_link’>$rows[name]</a><br>”;
echo “<div style=’padding-top: 10px;’>”;
echo “<a href=’index.php?go=products&action=view&catid=$catid&id=$rows[id]’><img src=’./product_img/$rows[img_small]’ border=’0′ class=’img_small’></a>”;
echo “<span class=’produs_view_small_block’><b>Stoc</b>: $rows[stock]<br> $rows[code]</span>”;
echo “</div>”;
echo “</div>”; }
}
?>
The problem is that I have to display those two boxes (from one div to another) in a single row, not one under another. Thus, I need 6 boxes displayed in 3 rows by 2 boxes in each row. How can I solve the problem?
Thanks a lot.