Create on_track_sh.php

ok guys, here is my code for selecting the classes, it is not quite working for the following reasons:
-Too many possabilitys!!!
      1.  currently it selects one complementry course (lab, pas, tut, pa, ect..) thought some classes seem to have more then just one (ie. pa amd lab).
      2. there is currently no recurrision should the first attempt not workout
      3. electives function is not compleate
      4. no current methoid for selecting which timetable the student wants (probably the easest part to fix but i feel it should be done with a select button once the student has seen the choises and i dont have that code yet. a minimal js function will do the trick quick and simple, and can also have the ability to save the data in a student table).

the resulting array of classes is as follows:
            shed is a multidimentional array with length dependent on the number of classes needed for the associated semester,
            each row is layed out:
            shed[0][x]= [0]->course_id [1]->SUBJ Number [2]->course name [3]->sectio [4]-> type [5]->days [6]->s_time, [7]->e_time [8]->ROOM_CAP [9]->ARRAY([9][0]->Lec course_id [9][1]->lab course_id [9][2]->lab section [9][3]->type [9][4]->days [9][5]->lab s_time [9][6]->lab e_time [9][7]->lab ROOM_CAP)

            ex. shed[0][x]= [0]->724 [1]->CHEM 1101 [2]->chemistry for Eng [3]->A [4]-> LEC [5]->MW [6]->00:08:35 [7]->00:10:00 [8]->53 [9]->ARRAY([9][0]->724 [9][1]->727 [9][2]->L2 [9][3]->LAB [9][4]->F [9][5]->00:11:35 [9][6]->00:14:25 [9][7]->42)

to access the elements of the array on col 9 you need three indicies ie. shed[row][9][col].

further more to use this code you need the other tables i have buit namly, Lec_complement, Streem_Tree, and TempUser_Courses. i will post the table code and put the files on dropbox.