Thanks for your help, that was helpful while not being optimum I think this could be down to the table design do you think rather than this:
CREATE TABLE IF NOT EXISTS `showrota` (
`id` int(5) NOT NULL AUTO_INCREMENT,
`show` enum('1','2','3','4') NOT NULL,
`userid` int(5) NOT NULL,
`comment` varchar(100) NOT NULL DEFAULT 'No Comment',
`status` enum('0','1','2') NOT NULL DEFAULT '0',
`date` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=13 ;
This would be better?
CREATE TABLE IF NOT EXISTS `shows` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`datetime` varchar(100) NOT NULL,
`presenter1id` smallint(5) NOT NULL,
`presenter2id` smallint(5) NOT NULL,
`engineerid` smallint(5) NOT NULL,
`presenter1status` enum('0','1','2') NOT NULL DEFAULT '0',
`presenter2status` enum('0','1','2') NOT NULL DEFAULT '0',
`engineerstatus` enum('0','1','2') NOT NULL DEFAULT '0',
`presenter1comment` varchar(60) NOT NULL DEFAULT 'No Comment',
`presenter2comment` varchar(60) NOT NULL DEFAULT 'No Comment',
`egineercomment` varchar(60) NOT NULL DEFAULT 'No Comment',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
Although with the last option if the user wanted to update their comment I will have to do an if function to determine if they are presenter1comment, presenter2comment or engineercomment, I shouldn't think this matters though and would end up have an optimum code