(Postdata: dile a tus profesores de mi parte que me caen bastante mal sin conocerlos
Código PHP:
Ver originalCREATE TABLE IF NOT EXISTS `horario` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cedula_personal` int(8) NOT NULL,
`grado` varchar(10) NOT NULL,
`seccion` int(2) NOT NULL,
`aula` varchar(20) NOT NULL,
`materia` varchar(60) NOT NULL,
`dia` int(1) NOT NULL,
`h_entrada`
time NOT
NULL,`h_salida`
time NOT
NULL,`f_creado`
date NOT
NULL,) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ;
*
--
-- Volcar la base de datos para la tabla `horario`
--
*
INSERT INTO `horario` (`id`, `cedula_personal`, `grado`, `seccion`, `aula`, `materia`, `dia`, `h_entrada`, `h_salida`, `f_creado`) VALUES
(1, 12345678, '1', 1, 'AULA 01', 'Informatica', 1, '07:00:00', '10:00:00', '2012-07-13'),
(2, 12345678, '2', 3, 'AULA 02', 'Educacion para la Salud', 1, '11:20:00', '12:40:00', '2012-07-13'),
(3, 12345678, '2', 1, 'AULA 01', 'Dibujo tecnico', 1, '13:40:00', '15:00:00', '2012-07-13'),
(4, 12345678, '1', 1, 'AULA 01', 'Dibujo tecnico', 2, '07:00:00', '10:00:00', '2012-07-13'),
(5, 12345678, '2', 1, 'AULA 02', 'Informatica', 2, '10:00:00', '12:40:00', '2012-07-13'),
(16, 12345678, '1', 3, 'AULA 01', 'Informatica', 3, '07:00:00', '10:00:00', '2012-07-16'),
(17, 12345678, '2', 5, 'AULA 02', 'Educacion para la Salud', 3, '11:20:00', '12:40:00', '2012-07-16'),
(14, 12345678, '2', 2, 'LAB.QUIMICA', 'Historia Universal', 2, '16:00:00', '18:00:00', '2012-07-15'),
(18, 12345678, '1', 5, 'AULA 01', 'Informatica', 5, '07:00:00', '10:00:00', '2012-07-16'),
(15, 12345678, '1', 2, 'LAB.QUIMICA', 'Matematicas', 2, '13:00:00', '14:20:00', '2012-07-16'),
(19, 12345678, '2', 4, 'AULA 01', 'Informatica', 5, '10:00:00', '12:40:00', '2012-07-16');