From f074500a2a6524fedc1bd3b3f0e16db6615f0fa4 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 25 Oct 2018 23:24:58 -0500 Subject: [PATCH] moon calc --- app/Library/MoonCalc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Library/MoonCalc.php b/app/Library/MoonCalc.php index 415ddf72b..04f5ffe11 100644 --- a/app/Library/MoonCalc.php +++ b/app/Library/MoonCalc.php @@ -150,7 +150,8 @@ class MoonCalc { //Get the max time from the database $maxTime = DB::table('Prices')->where('ItemId', 34)->max('Time'); //Get the price of the basic minerals - $tritaniumPrice = DB::select('SELECT Price FROM Prices WHERE ItemId = ? AND Time = ?', [34, $maxTime])->get(); + $tritaniumPrice = DB::select('SELECT Price FROM Prices WHERE ItemId = ? AND Time = ?', [34, $maxTime]); + $tritanium = DB::table('Prices')->select('Price')->where(['ItemId' => 34, 'Time' => $maxTime]); //$tritaniumPrice = $db->fetchColumn('SELECT Price FROM Prices WHERE ItemId= :id AND Time= :time', array('id' => 34, 'time' => $maxTime)); $pyeritePrice = DB::select('SELECT Price FROM Prices WHERE ItemId = ? AND Time = ?', [35, $maxTime]); $mexallonPrice = DB::select('SELECT Price FROM Prices WHERE ItemId = ? AND Time = ?', [36, $maxTime]);