Ver Mensaje Individual
  #6 (permalink)  
Antiguo 05/04/2015, 15:32
Avatar de Djoaq
Djoaq
 
Fecha de Ingreso: septiembre-2012
Ubicación: Barcelona
Mensajes: 271
Antigüedad: 11 años, 7 meses
Puntos: 38
Respuesta: Graficar Horario en tabla

Código PHP:

if ($num 0) { 
    while (
$de mysql_fetch_assoc($busco)) { 

        
$materias[] = $de['materia']; 
        
$diasf[] = $de['dia']; 
        
$h_ini intval($de['h_entrada']);
        
$h_fin intval($de['h_salida']); 

           if (
$h_ini<=$h_fin) {
            
$hora_inicio $h_ini;
            
$hora_fin $h_fin;
            for (
$i=intval($de['h_entrada']); $i intval($de['h_salida']); $i++) { 
                    
                
$total[]= $hora_inicio.":00 - ".++$hora_inicio.":00 ";
            
            }
    
        } 
    }

Prueba a ver .