Submissions.php: rename variable

Bug430-Eden2
Lan Hui 2023-09-03 20:33:35 +08:00
parent d6365377ef
commit f740ed9a03
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ echo "<div><a href='Courses.php?course=$url'> $header </a></div>";
$resultx1 = mysqli_query($con, "Select Count(*) as cnt from lab_report_submissions where lab_report_submissions.Lab_Report_ID=$id");
$row = mysqli_fetch_assoc($resultx1);
$count_subs = $row['cnt'];
$count_submissions = $row['cnt'];
$resultx2 = mysqli_query($con, "Select COUNT(*) as cnt from lab_report_submissions where lab_report_submissions.Lab_Report_ID=$id and Status='Marked'");
$row = mysqli_fetch_assoc($resultx2);
@ -86,7 +86,7 @@ echo "<div><a href='Courses.php?course=$url'> $header </a></div>";
?>
<br>
<p class="text-muted"><b>Total submissions (<?php echo $count_subs; ?>)</b></p>
<p class="text-muted"><b>Total submissions (<?php echo $count_submissions; ?>)</b></p>
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="myTab">
<li class="nav-item">