Skip to content
Permalink
5629b0e171
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
52 lines (23 sloc) 894 Bytes
<?php
include_once (__DIR__."/Utility/surveyData.php");
include_once (__DIR__."/Utility/dataConnect.php");
include_once (__DIR__."/Utility/profileData.php");
include_once (__DIR__."/Utility/hleData.php");
include_once (__DIR__."/Utility/weekCalculations.php");
include_once (__DIR__."/Utility/array_column.php");
$query = "select MemberID from weeklyScore where Week = 40";
$result = $db->getQuery($query);
echo "{$db->UserName} ";
if ($result == true && $result > 0) {
echo "{$result} ";
$result1 = array_column($result,'MemberID');
echo "{$result1[1]} ";
foreach ($result1 as $AccountName) {
$memberData = new userProfile($AccountName);
$surveyWeek = new survey($AccountName, 2018, 10,1);
$hleWeek = new hleData($memberData, $surveyWeek,true,false);
echo "{$hleWeek->getPoints()} ";
}
}
else echo "FALSE ";
?>