'; $count=0; $result = mysql_query("SELECT * FROM ecomcategories ORDER BY idcat ASC"); while($row = mysql_fetch_array($result,MYSQL_ASSOC)){ if ($count%2==0 && $count!=0){ echo ''; } $img1 = 'images/pixel.gif'; if(is_file('images/ecommerce/'.$row['idcat'].'.jpg')){ $img1 = 'images/ecommerce/'.$row['idcat'].'.jpg'; $name = $row['name']; echo ' '; } $count++; } echo'

'.$name.'
'; echo '
'; ?>