Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

laksha's avatar

university management system

i am making a university management system and i need to add a time table it has 3 interphases students, lectures and admin similarly ,there is adatabase that is department,model,lectures , student and timetable

The columns in the time table data base are respectively department_name, year, semester, model, start_time, end_time, lecture. The department table contains the name of the department and the department id In the model table, there is a column that says the modli id, the name of the module, the year in which the model is in which semester and in which department. In the lecture table, lectures_name, id, and the module of the lecture are available I want to insert data into time_table table Insert data into the time_table table following conditions must be satisfied

First select the department in the timetable.blade.php file Four more years are given to choose and two semesters can be selected. These should be done using the radio button Now, according to the selected department, the models related to that department will be displayed There is also a way to insert the start time and end time into the table

condition

01.Here, at any time, one lecturer cannot have two lectures at the same time 02.And one student cannot have two lectures at the same time

0 likes
6 replies
ycsm's avatar

It's very hard to figure out what question you're asking. Sounds like you need to do some logic in your controller to make sure slots aren't already filled in the timetables of both the student and the lecturer...

IF STUDENT HAS TIMETABLE SLOT ALREADY - THROW ERROR

IF LECTURER HAS TIMETABLE SLOT ALREADY - THROW ERROR

ELSE

PERFORM MORE LOGIC

laksha's avatar

@ycsm no ,student and lectures not has time table i want to create time table

laksha's avatar

@ycsm i see this vidoe ,but it is difficult to find the error when taking the time table from the places where the code is used , can you separate only the code of the time table

Please or to participate in this conversation.