// ------------------------ // 4c. Agent/Admin Commission & Records Table (Dynamic, No New Column) // ------------------------ // Fetch store owner $stmt = mysqli_prepare($Connection, "SELECT author_id FROM stores WHERE id = ?"); mysqli_stmt_bind_param($stmt, "i", $store_id); mysqli_stmt_execute($stmt); $store = mysqli_stmt_get_result($stmt)->fetch_assoc(); $ownerId = $store['author_id']...