Commit 294fab03 authored by stph's avatar stph
Browse files

Fix display bug, missing order in sql query

parent 74c47d7b
......@@ -37,7 +37,8 @@ class DB {
FROM vapi a
LEFT JOIN subscribe s
ON a.id = s.api
WHERE semester=:semester AND year=:year';
WHERE semester=:semester AND year=:year
ORDER BY week, code';
$st = $this->conn->prepare($sql);
$st->bindValue(':semester',$admin->activeSemester(),PDO::PARAM_STR);
$st->bindValue(':year',$admin->activeYear(),PDO::PARAM_INT);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment