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);