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; ?> Live Auction - <?php echo $t_data['tourney_name']; ?>

🏏 Auction πŸ”΄ LIVE NOW

Live from CricStarScorer Arena

⏳ Auction Starts In
Days
Hours
Minutes
Seconds
πŸ“…

⏸️ Auction Not Started

The auction will begin at the scheduled time. Please check back later.

βœ… Auction Completed

This auction has ended. Thank you for participating!

Player

Waiting for Player...

Role: ---
⏳ Time Left: 5:00
Current Bid
β‚Ή 0
Highest Bidder
---

πŸ† Teams Status (Click on a team to see players)

Team Name Remaining Purse Players Bought
Loading teams...