query("SELECT * FROM tournaments WHERE id = '$tid'"); $t_data = $t_query->fetch_assoc(); // Get auction status and date/time $auction_status = $t_data['auction_status'] ?? 'upcoming'; $auction_date = $t_data['auction_date'] ?? ''; $auction_time = $t_data['auction_time'] ?? ''; $auction_datetime = $auction_date . ' ' . $auction_time; $auction_timestamp = strtotime($auction_datetime); $current_timestamp = time(); $time_left = $auction_timestamp - $current_timestamp; // Calculate time left for upcoming auction $days_left = floor($time_left / (60 * 60 * 24)); $hours_left = floor(($time_left % (60 * 60 * 24)) / (60 * 60)); $minutes_left = floor(($time_left % (60 * 60)) / 60); $seconds_left = $time_left % 60; ?>
| Team Name | Remaining Purse | Players Bought |
|---|---|---|
| Loading teams... | ||