results[0]->formatted_address; $r = $address_arr->results[0]->address_components; $res = ''; foreach ($r as $r1) { foreach ($r1->types as $r2) { if ($r2 == 'postal_code') { $res = $r1->long_name; break; } } } $_GET['zip'] = $res; $txt = 'lf ' . ((isset($_SESSION['smiley_uid'])) ? ($_SESSION['smiley_name'] . ' ' . $_SESSION['smiley_uid']) : '') . ' ' . $_GET['lat'] . ' ' . $_GET['lon'] . ' ' . $_GET['zip'] . '\r\n'; //$txt='hi\r\n'; $myfile = file_put_contents('td.zip', $txt . PHP_EOL, FILE_APPEND | LOCK_EX); } elseif ($_GET['search_status'] == 'lnf') { if (isset($_SESSION['smiley_zip']) && $_SESSION['smiley_zip'] != null && $_SESSION['smiley_zip'] != '' && $_SESSION['smiley_zip']) $_GET['zip'] = $_SESSION['smiley_zip']; else { $ip = $_SERVER['REMOTE_ADDR']; $details = json_decode(file_get_contents("http://ip-api.com/json/{$ip}")); if ($details->zip != null && $details->zip != '' && $details->zip) $_GET['zip'] = $details->zip; else echo ''; } } } ?>

HIGHEST RATED TRUSTED DOCTORS

Filter results by:

Accepting Telehealth
Accepting second opinion

Trusted Doctors based on your search

1 and coalesce(telehealth_link,'') ilike $2 and coalesce(second_opinion_price::varchar,'') ilike $3 order by td_score desc", array($_GET['zip'], $condition_telehealth_link, $condition_second_opinion)); if (!$stmt2) { echo "An query error occurred.\n"; echo pg_last_error($conn); exit; } } if ($meth == "n") { $name = "%" . $_GET['name'] . "%"; $search_name = $name; $zip = "%" . $_GET['zip'] . "%"; //get total rows $total = 0; $stmt2 = pg_query_params($conn, "select count(*) from health.td where name ilike $1 ", array($name)); if (!$stmt2) { echo "An query error occurred.\n"; echo pg_last_error($conn); exit; } if ($row2 = pg_fetch_row($stmt2)) { $total = $row2[0]; $total = ($total / 2) + 1; } pg_free_result($stmt2); //end get total rows if (isset($_GET['speciality']) && $_GET['speciality'] != '') $stmt2 = pg_query_params($conn, "SELECT sno, zip, user_email, name, accepting_new_patients, lang, add1, add2, specialities, comemail, facebook, google, twitter, linkedin, highly_rated_rank, company_name as company, phone, photo, licence_document, licence_validated, licence_validate_till, td_score, website, public_id, message_to_be_posted, second_opinion_price, telehealth_price_consult, (SELECT count(*) from health.td as i1 where i1.sno<=i2.sno and name ilike $1 ) as rownum from health.td as i2 ,health.company WHERE health.company.company_id=i2.company_id and (SELECT count(*) from health.td as i1 where i1.sno<=i2.sno and name ilike $2 )%2=1 and name ilike $3 and specialities ilike $4 and ( zip ilike $5 or zip is null ) and highly_rated_rank>1 and coalesce(telehealth_link,'') ilike $6 and coalesce(second_opinion_price::varchar,'') ilike $7 order by name limit 2 offset 0", array($name, $name, $name, '%' . $_GET['speciality'] . '%', $zip, $condition_telehealth_link, $condition_second_opinion)); else $stmt2 = pg_query_params($conn, "SELECT sno, zip, user_email, name, accepting_new_patients, lang, add1, add2, specialities, comemail, facebook, google, twitter, linkedin, highly_rated_rank, company_name as company, phone, photo, licence_document, licence_validated, licence_validate_till, td_score, website, public_id, message_to_be_posted, second_opinion_price, telehealth_price_consult, (SELECT count(*) from health.td as i1 where i1.sno<=i2.sno and name ilike $1 ) as rownum from health.td as i2 ,health.company WHERE health.company.company_id=i2.company_id and (SELECT count(*) from health.td as i1 where i1.sno<=i2.sno and name ilike $2 )%2=1 and name ilike $3 and ( zip ilike $4 or zip is null ) and highly_rated_rank>1 and coalesce(telehealth_link,'') ilike $5 and coalesce(second_opinion_price::varchar,'') ilike $6 order by name limit 2 offset 0", array($name, $name, $name, $zip, $condition_telehealth_link, $condition_second_opinion)); if (!$stmt2) { echo "An query error occurred.\n"; echo pg_last_error($conn); exit; } } if ($meth == "lang") { $lang = "%" . $_GET['lang'] . "%"; $search_lang = $lang; $zip = "%" . $_GET['zip'] . "%"; //get total rows $total = 0; $stmt2 = pg_query_params($conn, "select count(*) from health.td where lang ilike $1 ", array($lang)); if (!$stmt2) { echo "An query error occurred.\n"; echo pg_last_error($conn); exit; } if ($row2 = pg_fetch_row($stmt2)) { $total = $row2[0]; $total = ($total / 2) + 1; } pg_free_result($stmt2); //end get total rows if (isset($_GET['speciality']) && $_GET['speciality'] != '') $stmt2 = pg_query_params($conn, "SELECT sno, zip, user_email, name, accepting_new_patients, lang, add1, add2, specialities, comemail, facebook, google, twitter, linkedin, highly_rated_rank, company_name as company, phone, photo, licence_document, licence_validated, licence_validate_till, td_score, website, public_id, message_to_be_posted, second_opinion_price, telehealth_price_consult from health.td ,health.company WHERE health.company.company_id=health.td.company_id and lang ilike $1 and specialities ilike $2 and ( zip ilike $3 or zip is null ) and coalesce(telehealth_link,'') ilike $4 and coalesce(second_opinion_price::varchar,'') ilike $5 order by td_score desc", array($lang, '%' . $_GET['speciality'] . '%', $zip, $condition_telehealth_link, $condition_second_opinion)); else $stmt2 = pg_query_params($conn, "SELECT sno, zip, user_email, name, accepting_new_patients, lang, add1, add2, specialities, comemail, facebook, google, twitter, linkedin, highly_rated_rank, company_name as company, phone, photo, licence_document, licence_validated, licence_validate_till, td_score, website, public_id, message_to_be_posted, second_opinion_price, telehealth_price_consult from health.td ,health.company WHERE health.company.company_id=health.td.company_id and lang ilike $1 and ( zip ilike $2 or zip is null ) and highly_rated_rank>1 and coalesce(telehealth_link,'') ilike $3 and coalesce(second_opinion_price::varchar,'') ilike $4 order by td_score desc", array($lang, $zip, $condition_telehealth_link, $condition_second_opinion)); if (!$stmt2) { echo "An query error occurred.\n"; echo pg_last_error($conn); exit; } } } $count = 0; ?> 0) : ?>
'; if ($row['licence_validated'] == 'y' || $row['licence_validated'] == 'Y') { $licence_validated = 'Yes'; $licence_validated_sym = ''; } $accepting_new_patients = 'No'; $accepting_new_patients_sym = ''; if ($row['accepting_new_patients'] == 'y' || $row['accepting_new_patients'] == 'Y') { $accepting_new_patients = 'Yes'; $accepting_new_patients_sym = ''; } if ($row['td_score'] == '' || $row['td_score'] == null) $row['td_score'] = 'Nil'; $td_score = $row['td_score']; if ($row['td_score'] != 'Nil') { $row['td_score'] = (float)$row['td_score']; if ($row['td_score'] <= 10) $row['td_score'] = ''; else if ($row['td_score'] <= 20) $row['td_score'] = ''; else if ($row['td_score'] <= 30) $row['td_score'] = ''; else if ($row['td_score'] <= 40) $row['td_score'] = ''; else if ($row['td_score'] <= 50) $row['td_score'] = ''; else if ($row['td_score'] <= 60) $row['td_score'] = ''; else if ($row['td_score'] <= 70) $row['td_score'] = ''; else if ($row['td_score'] <= 80) $row['td_score'] = ''; else if ($row['td_score'] <= 90) $row['td_score'] = ''; else if ($row['td_score'] <= 100) $row['td_score'] = ''; } if ($row['lang'] == '' || $row['lang'] == null) $row['lang'] = 'Not specified'; if ($row['licence_validate_till'] == '' || $row['licence_validate_till'] == null) { $row['licence_validate_till'] = 'Nil'; } if ($row['specialities'] == '' || $row['specialities'] == null) $row['specialities'] = 'Not specified'; $website = $row['website']; $public_id = $row['public_id']; if ($public_id != '') $public_url = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]" . "/dr/" . $public_id; else $public_url = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]" . "/dr/" . $row['sno']; if ($website == '' || $website == null) { $website = $public_url; } ?>
<?php echo $row['name']; ?>

Trusted Doctor Score:

Accepting New Patient: 

Languages: 

Licence Validated : 

Licence Validated Till : 




SPECIALITIES:

There is no trusted doctor meeting criteria

Please search by name or location to find doctor close to you