Add: Enable/disable test_exam
This commit is contained in:
@@ -44,9 +44,14 @@ class WritingCollection extends DBMethodContainer
|
||||
$query = "
|
||||
SELECT WritingID
|
||||
FROM writing
|
||||
WHERE Language=? AND ActivateStatus=1";
|
||||
WHERE
|
||||
(
|
||||
SELECT COUNT(1)
|
||||
FROM active_app
|
||||
WHERE MaestroID=? AND AppID=200
|
||||
)=1 AND Language=? AND ActivateStatus=1";
|
||||
$stmt = $this->mysqli->prepare($query);
|
||||
$stmt->bind_param("s", $language);
|
||||
$stmt->bind_param("ss", $maestroID, $language);
|
||||
$stmt->execute();
|
||||
$stmt->bind_result($writingID);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user