Ver Mensaje Individual
  #5 (permalink)  
Antiguo 19/11/2019, 17:52
Avatar de Briss
Briss
 
Fecha de Ingreso: junio-2011
Mensajes: 1.293
Antigüedad: 12 años, 10 meses
Puntos: 12
Respuesta: colspan en tabla

Gracias mira hice algunos cambios
Código PHP:
<?php  do { ?>
<?
echo "<th width=30 colspan=$total>";
echo 
htmlentities($row_categorias['nombre']);
echo 
"</th>";  

    
       
for (
$i 1$i 3$i++) {
    print 
"<tr><th>$i</th></tr>";

           
           
    echo 
"<tr>
    <td ><p>CABECERA DOS</p></td>
  </tr>
  <tr>
    <td  ><p>1</p></td>
    <td ><p>2</p></td>

  </tr>"
;
?>
<?php 
      
} while ($row_categoriasmysql_fetch_assoc($categorias));
                        
    
?>

PERO mi imagen sale asi
https://ibb.co/hMY1DfG


Y deberia ser asi
https://ibb.co/VmLxQnp


Los <tr> al sacarlos del do while quedan horizontales no sè que debo mover