PHP Help

I have attached zip file run the tableform.htm file first and give inputs as no of hours of lecture:6,max lecture per week:8,max lec per day:3 and num of generation:2
the action.php file in which genetic algorithm is there which should generate the timetable but this code only generates days and subjects in the timetable is not generated