user_id and contains home_id references // We need to join with ogp_home to get server details $query = "SELECT h.home_id, h.home_name, h.enabled, rs.remote_server_name, gc.game_name, o.order_id, o.status, o.invoice_duration, -- use end_date as the expiration marker (set when order is paid/created) o.end_date AS expiration_date, bs.service_name, bs.price_monthly FROM ogp_home h LEFT JOIN ogp_remote_servers rs ON h.remote_server_id = rs.remote_server_id LEFT JOIN ogp_game_configs gc ON h.home_cfg_id = gc.home_cfg_id LEFT JOIN ogp_billing_orders o ON h.user_id = o.user_id LEFT JOIN ogp_billing_services bs ON o.service_id = bs.service_id WHERE h.user_id = $user_id ORDER BY h.home_id DESC"; $result = mysqli_query($db, $query); ?>
My Game Servers
0): ?>
Server Name Game Location Status Expiration Date Monthly Price Actions
Renew N/A

You don't have any game servers yet.

Browse Game Servers