Home > Backend Development > PHP Tutorial > mysql - [PHP] Can't find a better solution in the process of designing course schedules and querying data?

mysql - [PHP] Can't find a better solution in the process of designing course schedules and querying data?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-10-17 09:30:02
Original
1003 people have browsed it

I have been troubled by this issue of class schedule for a long time. I query based on the academic year and semester on the page. First, I can get the student’s student number--"So I get the class in which he is in--" My data storage field is as shown above. The process-oriented approach is not like Java, which does not have the concept of sets. I need to query based on the school year, semester, week, and class. What I get is a multi-dimensional array. In a fixed table, I cannot traverse the array, except using a large number of Redundant code, I can’t think of a good solution at the moment
mysql - [PHP] Can't find a better solution in the process of designing course schedules and querying data?

mysql - [PHP] Can't find a better solution in the process of designing course schedules and querying data?

Reply content:

I have been troubled by this class schedule issue for a long time. I checked on the page based on the academic year and semester. First, I can get the student’s student number--" Then I get the class he is in--" My data storage fields are as shown above. The process-oriented approach is not like Java, which does not have the concept of sets. I need to query based on the school year, semester, week, and class. What I get is a multi-dimensional array. In a fixed table, I cannot traverse the array, except using a large number of Redundant code, I can’t think of a good solution at the moment
mysql - [PHP] Can't find a better solution in the process of designing course schedules and querying data?

mysql - [PHP] Can't find a better solution in the process of designing course schedules and querying data?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template