'; $result = mysql_query("SELECT * FROM ecomitems WHERE iditem = ".$iditem); $row = mysql_fetch_array($result,MYSQL_ASSOC); $path = (($row['image'])? 'images/ecommerce/item_'.$row['iditem'].'.jpg' : 'images/ecommerce/nopicture.jpg'); echo '
Til baka  Karfan mín | Panta
 
'.$titlu.'
 
Vörunúmer: ' . $row['serial'] . '
Verð: ' . (($row['disb']) ? '' : $row['price']) . '
Vörulýsing: ' . $row['description'] . '
Magn:    
'; $nextRow = 0; $result1 = mysql_query("SELECT * FROM ecomitemsimages WHERE itemId = " . $row['iditem']) or die("Invalid query: ".mysql_error()); while ($row1 = mysql_fetch_assoc($result1)) { if ($nextRow % 5 == 0) { echo ''; } $wid = 100; $size = minimizer($row1["img_w"], $row1["img_h"], $wid, "*"); echo ''; $nextRow++; } echo '

' . $row1['picText'] . '
'; ?>