From ae8a552ee762c6cef791c69769d390d55a9a3180 Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Tue, 29 Aug 2017 00:07:02 +0200 Subject: [PATCH] fix: mysqli_result() function added after conversion from MySQL adapter --- GameEngine/Admin/Mods/givePlusRes.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/GameEngine/Admin/Mods/givePlusRes.php b/GameEngine/Admin/Mods/givePlusRes.php index d4ec10c3..a0522e56 100755 --- a/GameEngine/Admin/Mods/givePlusRes.php +++ b/GameEngine/Admin/Mods/givePlusRes.php @@ -12,6 +12,12 @@ if (!isset($_SESSION)) session_start(); if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!"); include_once("../../config.php"); +function mysqli_result($res, $row, $field=0) { + $res->data_seek($row); + $datarow = $res->fetch_array(); + return $datarow[$field]; +} + $GLOBALS["link"] = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS); mysqli_select_db($GLOBALS["link"], SQL_DB);