<?php
function getCompanyDetails($conn) {
    $query = "SELECT * FROM com_details WHERE id = 1 LIMIT 1";
    $result = mysqli_query($conn, $query);
    
    if ($result && mysqli_num_rows($result) > 0) {
        return mysqli_fetch_assoc($result);
    }
    
    // Default values if no company details found
    return [
        'name' => 'SDB INNOVATIONS PRIVATE LIMITED',
        'web_name' => 'sdbinnovationsprivatelimited.com',
        'email' => 'sdbinnovation@gmail.com',
        'mobile' => '8126555499'
    ];
}
?>