'; $handle = fopen("productos.csv", "r"); echo ''; $a = 0; while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { if (ereg("^#", $data[0]) == false && (!$val_ant || $val_ant != $data[0])){ echo ' '; $val_ant = $data[0]; $a++; if (($a % $cols) == 0) {echo '';} } } echo '

' . $data[0] . '


'; include "incs/barra.php"; echo '
'; fclose($handle); ?>