has("messages", ['id' => $_POST['id']])) { $update_success = -1; } else { if ($_POST['action'] == "delete") { $database->delete("messages", ['id' => $_POST['id']]); $update_success = 1; } } } ?>
User | Message | Time | Location | Actions |
---|---|---|---|---|
" . (is_null($msg['nickname']) ? "SYSTEM" : $msg['nickname']) . " | \n" . "" . $msg['message'] . " | \n" . "" . $time . " | \n" . "" . ((is_null($msg['lat']) || is_null($msg['long'])) ? "Global" : $msg['lat'] . ', ' . $msg['long']) . " | \n" . "\n" . " \n" . " | \n" . "