Permalink
Cannot retrieve contributors at this time
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?
golden/recalc.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
52 lines (23 sloc)
894 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 "; | |
?> | |