Heya, i’ve been reading it over internet but lack of my knowledge prevents me from editing this script to echo those products in same row. I read that i could do some sort of loop to make the result appear horizontally instead of vertically but i’d appreciate it, if someone could help me a little
Lets say i want 2-3 products per row and then it starts a new row. I tried a few things around the internet but i wasn’t able to get the result i wanted. Thanks in advance for anyone, who can help me with this script! ^^
[php] <?php
mysql_connect(“localhost”, “root”, “pword”) or die(mysql_error());
mysql_select_db(“database”) or die(mysql_error());
$result = mysql_query("SELECT id , Code , Product , Quantity , Price , Image FROM products WHERE id >=1 AND id <=14");
while (list($id , $Product , $Code , $Quantity , $Price , $Image ) = mysql_fetch_row($result))
{
echo
"
<p class=“suositut”>
<img src="$Image" border=“0” alt="" align=“left” >
$Code
Code:
$Product
Quantity: $Quantity
Price:<span style=“color:blue”><font size=“h4”>$Price € (alv 0%)
}
?>[/php]