include $_SERVER['DOCUMENT_ROOT']."/common.php"; $sql= "SELECT * from homepage where store_slug='".$siteurl."' and status='publish' limit 1"; $result = $conn->query($sql); if ($result->num_rows > 0){ $home = $result->fetch_assoc(); }else{ $sql= "SELECT * from homepage where storeid='' limit 1"; $result = $conn->query($sql); if ($result->num_rows > 0) $home = $result->fetch_assoc(); } ?>
{ echo $agent->c_employee_imagetemp__c;}else{ echo '/img/no-agent-photo.jpg';}?>)