<?php
require_once "../config/db.php";
$id = intval($_GET['id'] ?? 0);
if ($id) {
    $pdo->prepare("UPDATE companies SET status='active' WHERE id=?")->execute([$id]);
    header("Location: companies.php?approved=1");
    exit;
}
header("Location: companies.php");
