--> prepare("SELECT * FROM company WHERE username=? LIMIT 1"); $stmt->bind_param("s",$slug); $stmt->execute(); $company = $stmt->get_result()->fetch_assoc(); } }else{ // Custom Domain // livehomefurniture.com $stmt = $conn->prepare(" SELECT c.* FROM company c INNER JOIN company_domains d ON d.company_id=c.id WHERE d.domain=? LIMIT 1 "); $stmt->bind_param("s",$hostName); $stmt->execute(); $company = $stmt->get_result()->fetch_assoc(); } if(!$company){ http_response_code(404); die("Company not found"); } $mainurl="https://palbalaji.tempudo.com/business/api"; $title = $company['meta_title']; if($title=="") $title=$company['company_name']; $description = $company['meta_description']; if($description=="") $description="Business Website"; $favicon = $mainurl."/uploads/".$company['id']."/branding/icons/icon-192.png"; $logo = $mainurl."/uploads/".$company['id']."/branding/icons/icon-512.png"; ?> <?= htmlspecialchars($title) ?>