Hey every1 , i have started coding in php and am a qucik learner (computer generation) i have ran into a problem and am cluless :(
ill start by showing you the mysql table
i know i have to echo a html table in an array but i dont know how to make it look like this:
i had a old code but it only handled basic rows that where already lyk the stated above.
any help is appreciated if u need more info just ask.
TY and have a very happy new year.
P.S sorry if i put the SQL code in wrong BBcode , didnt know what to put it as?
ill start by showing you the mysql table
Code:
--
-- Table structure for table `01234`
--
CREATE TABLE IF NOT EXISTS `01234` (
`ucode` char(50) NOT NULL,
`Day` char(50) NOT NULL,
`Period` char(50) NOT NULL,
`sub` char(50) NOT NULL,
`teacher` char(50) NOT NULL,
`room` char(50) NOT NULL,
`class` char(50) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `01234`
--
INSERT INTO `01234` (`ucode`, `Day`, `Period`, `sub`, `teacher`, `room`, `class`) VALUES
('01234', '1', '1', 'PE', 'PETE', 'R16', '2.8'),
('01234', '1', '2', 'WHG', 'WHGT', 'R27', '2.8'),
('01234', '1', '3', 'COMM', 'COMMT', 'R12', '2.1'),
('01234', '1', '4', 'COMM', 'COMMT', 'R12', '2.1'),
('01234', '1', '5', 'SCIE', 'SCIET', 'SL1', '2.8'),
('01234', '1', '6', 'ENGL', 'ENGT', 'R29', '2.7'),
('01234', '2', '1', 'MATH', 'MATHT', 'R18', '2.5'),
('01234', '2', '2', 'ENGL', 'ENGT', 'R29', '2.7'),
('01234', '2', '3', 'RELI', 'RET', 'R15', '2.8'),
('01234', '2', '4', 'INST', 'PCT', 'CL1', '2.5'),
('01234', '2', '5', 'SPORTB', 'SPT', '', '2.2'),
('01234', '2', '6', 'SPORTB', 'SPT', '', '2.2'),
('01234', '3', '1', 'WHG', 'WHGT', 'R30', '2.8'),
('01234', '3', '2', 'PE', 'PETE', 'R23', '2.8'),
('01234', '3', '3', 'RELI', 'RET', 'R15', '2.8'),
('01234', '3', '4', 'SCIE', 'SCIET', 'SL1', '2.8'),
('01234', '3', '5', 'SCIE', 'SCIET', 'SL1', '2.8'),
('01234', '3', '6', 'COMM', 'COMMT', 'R12', '2.1'),
Code:
Period Day1 Day2 Day3 1 PE MATH WHG 2 WHG ENG PE 3 COMM RELI RELI 4 COMM INST SCIE
any help is appreciated if u need more info just ask.
TY and have a very happy new year.
P.S sorry if i put the SQL code in wrong BBcode , didnt know what to put it as?
Comment