POST Requests: Array ( ) !
0) while ( $row = $result->fetch_row()) { if ($row[0] != "FAIL") { $count++; $total += floatval($row[0]); $minimum = min($minimum, floatval($row[0])); } } $average = $total / $count; print_r($average); print_r($minimum); if ($minimum > 6.0) { echo ("Should send GCM Notification"); $result = database::dbQuery("SELECT name, regId FROM users where emailAddress = '[email protected]'"); if(mysqli_num_rows($result) > 0) { $row = $result->fetch_row(); print_r($row); $regId = $row[1]; $name = $row[0]; } else { echo "No Rows!"; } echo 'Message Ready to go!'; $message = "WARNING:" . $_POST['t1value'] . " " . $_POST['t2value']; $SendMessage = new SendMessage($regId, $name, $message); } echo "IP Address Recorded as: " . $_SERVER['REMOTE_ADDR']; //ALL Requests: Array ( )