Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/11/2009, 18:00
Avatar de zaetoner
zaetoner
 
Fecha de Ingreso: noviembre-2007
Ubicación: La ciudad de México
Mensajes: 607
Antigüedad: 16 años, 5 meses
Puntos: 30
Respuesta: crear tablas con checkbox con bucles y bd ?

Código PHP:
$consulta="select * from tabla3 where date_format(fecha,'%Y-%m-%d') = '$fecha_calendario_actual'   
   "
;     
   
//echo "$consulta <br><br>";   
   
$res_consulta mysql_query($consulta$link); 

    echo 
"<table>"
    echo 
"<tr>";
    
$cuenta=0;
    while(
$row mysql_fetch_array($res_consulta))
    {
$cuenta++;
    if(
$cuenta==or $cuenta==or $cuenta==12){

    echo 
'</tr><tr>';

    }
    
$x++;
    
$fecha $row[fecha];    
    
$estado $row[estado];        
        
    echo
"
    <td>$x<input type='checkbox' name='estado'  value=''></td>
    "
;    
    

    }
    echo 
"</tr>";
    echo 
"</table>"
talvez esto te sirva, si no aqui andamos
__________________
...

Última edición por zaetoner; 10/11/2009 a las 18:05