Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/12/2002, 07:31
Avatar de mariog
mariog
 
Fecha de Ingreso: noviembre-2002
Ubicación: Madrid
Mensajes: 195
Antigüedad: 21 años, 5 meses
Puntos: 0
a ver si veis el fallo

este codigo me hace lo que yo quiero, que es generar unas tablas a partir de unos datos de la base de datos, pero me gustaria saber porq encima de las tablas por cada registro q pongo de la base de datos me incluye un espacio, por lo q si meto muchos registros, las tablas se me bajan abajo de la pagina y eso no lo quiero

Código PHP:
<?        
        
include ('class.NokTemplate.php');
        include(
'funciones.php');
        
$html = new NokTemplate('templates');
        
$html->cargar('tCuerpo','pagina.html');
        
$html->asignar('TITULO','Made in... Mexico');
        
$html->asignar('BANNER','madein.swf');
        
$link=Conectarse();
        
$limite=3;
        
$result=mysql_db_query("elnclave_es_db","select * from noticias where seccion like 'mexico'");
        
$pos="<table border=0 cellspacing=0 cellpadding=3 height=10><tr height=100%>";
        while(
$row=mysql_fetch_array($result)){
            
$a++;
            
$ponicion=$pos.$ponicion."<td width=200><table border=1 bordercolor=red cellpadding=0 cellspacing=0 width=100% height=100><tr><td bgcolor=#1A1A1A height=40><font color=#FFFFFF><center><b>$row[titulo]</b></center></font></td></tr><tr width=100%><td bgcolor=#3F3F3F><a href=notice.php?id=$row[id] class=art><font size=1><center>$row[resumen]<br><font color=#FFFFFF><b>Autor:</b></font>&nbsp$row[autor]&nbsp&nbsp&nbsp<font color=#FFFFFF><b>Sección:</b></font>&nbsp$row[seccion]</center></font></a></td></tr></table></td>&nbsp&nbsp";
            if(
$limite==$a){
                
$ponicion=$ponicion."</tr><tr height=100%>";
                
$a=0;
            }
        }
        
$ponicion=$ponicion."</tr></table>";
        
$poner="<center><font size=5 color=#009900>M</FONT><FONT SIZE=5 COLOR=#009900>E</FONT><font size=5 color=white>X</FONT><font size=5 color=white>I</FONT><font size=5 color=#ff0000>C</FONT><font size=5 color=#ff0000>O</FONT></center>".$ponicion;
        
$html->asignar('CONTENIDO',$poner);
        
$html->expandir('FINAL','tCuerpo');
        
$html->imprimir('FINAL');
?>
gracias