HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/xampp/htdocs/quiz/modules/reports.php
<?php if(!isset($RUN)) { exit(); } ?>
<?php

access::allow("1");

require "db/reports_db.php";

$data = array();
$tableSize = 300;

$asg_id=util::GetKeyID("asg_id", "?module=assignments");

$db = new db();
$db->connect();

$res_qst = $db->query(reports_db::GetQuestionsForReports($asg_id));

$percent = 0;

function get_percent($rate,$count)
{
    global $percent;
    $percent = round($rate*100/$count,2);
    return $percent;
}


function desc_func()
{
    return REPORTS;
}

?>