so one student withthe student can select different courses.
it works properly.../// courseID is a primary key..insert into courses(courseID) select courseID from courses1
now , its not showing any exception..coming to success page without storing .
one student can join in multiple courses...