HEX
Server: Apache
System: Linux sg2plzcpnl508499.prod.sin2.secureserver.net 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: s76vzjg2kvav (10209820)
PHP: 8.4.18
Disabled: NONE
Upload Files
File: /home/s76vzjg2kvav/public_html/admin/users/test.php
<?php 
include('includes/init.php');

	try {
$query = $db->query("SELECT * FROM `test_answers`");
	} catch (PDOException $e){ die($e->getMessage()); }
while($row = $query->fetch(PDO::FETCH_ASSOC)) {
	if(Question::getValue($db,'type',$row['questionid']) == 'N') {
		$answerPositive = 11 - $row['answer'];
	} else {
		$answerPositive = $row['answer'];
	}
		try {
	$db->query("UPDATE `test_answers` SET `answer_positive` = '{$answerPositive}' WHERE `id` = '{$row['id']}'");
		} catch (PDOException $e){ die($e->getMessage()); }
}