Ver Mensaje Individual
  #9 (permalink)  
Antiguo 28/02/2010, 11:33
Avatar de hector2c
hector2c
 
Fecha de Ingreso: noviembre-2007
Ubicación: Perú - Tacna
Mensajes: 979
Antigüedad: 18 años, 10 meses
Puntos: 25
Pregunta Respuesta: Error imprimiendoen 2 columnas

mmmmm, podrias mostrar el html que genera la tabla padre??? mejor aun si lo tienes en un hosting... para poder ver como anda...

este es el modo en que imprimo tablas autoformables

Código PHP:
function portal($ide_dep){
    if(empty(
$this->cantidad_a_mostrar)) $cantidad_a_mostrar = 3; else $cantidad_a_mostrar = $this->cantidad_a_mostrar;
    if(empty(
$this->columnas)) $columnas = 3; else $columnas = $this->columnas;

    
$sql = "select * from web_galeria WHERE ide_dep=".$ide_dep." and est_eli_gal=0 and est_vis_gal=1 ORDER BY ide_gal desc limit ".$cantidad_a_mostrar;
    
$gal = mysql_query($sql);
    
$num_rs_gal = mysql_num_rows($gal);
    if(
$num_rs_gal>0) echo "<table class='contenedor' width='100%'><tbody><tr>";
    
$i = 0;

    while(
$rs_gal = mysql_fetch_assoc($gal)){
        
$i++;
        echo 
"<td>";
        
$url_gal = "galeria_detalle.php?ide_gal=".$rs_gal['ide_gal'];
        
$vis_gal = $rs_gal['vis_gal'];
        
$ide_gal = $rs_gal['ide_gal'];
        
$tit_gal = $rs_gal['tit_gal'];
        
$fec_reg_gal = $rs_gal['fec_reg_gal'];
        
$des_gal = substr($rs_gal['des_gal'], 0, 128)."...";
        require(
$this->nivel.$this->galeria_plantilla);
        echo 
"</td>";
        if (
$i%$columnas == 0)
            echo 
"</tr><tr>";
        else
            echo 
"<td width='4%'></td>";
    }
    if(
$num_rs_gal>0) echo "</tr></tbody></table>";
    if(
$num_rs_gal==0) echo "<p>No se encontraron galerias en la base de datos</p>";
} 
__________________
blog: hector2c.wordpress.com
email: [email protected]