Its a form with drop-down boxes of start time and end time A day booking are from 08:00 to 21:00 normally its 1hr a lesson but when its a test its 2hrs. what I don't want is a duplicate of any lesson or Over lapping any lesson.
Zed
This is my table booking
CREATE TABLE booking (
b_id smallint(5) NOT NULL auto_increment,
`dateTime` char(15) NOT NULL,
user_id smallint(5) unsigned NOT NULL,
s_time varchar(10) NOT NULL,
e_time varchar(10) NOT NULL,
request_date varchar(20) NOT NULL,
PRIMARY KEY (b_id),
KEY user_id (user_id)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;