"; else echo ""; ?>
Fallo en la consulta:select familias.descripcion as dfam, familias.imagen, subfamilias.* from familias left join subfamilias on familias.codigo=subfamilias.familia where subfamilias.nivel<=0 order by familias.codigo, subfamilias.descripcion