include "utils/db_utils.php"; include "utils/string_utils.php"; include "utils/config.php"; $con = db_connect(); mysqli_set_charset($con, "utf8"); if($_SERVER['REQUEST_METHOD'] == "POST"){ $language = $_POST["language"]; $searchterm = $_POST["searchterm"]; } else if($_SERVER['REQUEST_METHOD'] == "GET"){ $tl = $_GET["tl"]; if (empty($tl)) $tl = "te"; $searchterm = urldecode($_GET["q"]); $language = ($tl == "te") ? "english-telugu" : "telugu-english"; } if (empty($searchterm)) header("location: index.php"); if ($language == "telugu-english" ){ $word_details = get_teluguword_details_by_word($con, $searchterm); if (!empty($word_details)){ $telugu_word = $word_details["TeluguWord"]; $english_word = $word_details["EnglishWord"]; $meaning_in_telugu = trim($word_details["Meaning"], " ,{*}"); $meaning_in_english = trim($word_details["EnglishMeaning"], " ,{*}");; $english_phonetic = $word_details["EnglishPhonetic"]; } } else if ($language == "english-telugu" ){ $word_details = get_englishword_details_by_word($con, $searchterm); if (!empty($word_details)){ $english_word = trim($word_details["EnglishWord"]); $meaning = trim($word_details["Meaning"]); $related_phrase = trim($word_details["RelatedPhrase"]); $synonym = trim($word_details["Synonym"]); } } if (!empty($searchterm) && ($language == "telugu-english")){ $meta_title = ucwords($searchterm) . " Meaning in English Meaning of " . ucwords($searchterm); $meta_keywords = "English Meaning of " . ucwords($searchterm) . ", English to Telugu Dictionary, Online Telugu Dictionary, Telugu Meanings, Telugu Vocabulary"; $meta_description = "English Meaning of " . ucwords($searchterm) . " or Meaning of " . ucwords($searchterm) . " in English and Telugu. English Telugu Dictionary Android Windows Apple Mobile Phones, Smart Phones and Tablets Compatibility."; } else if (!empty($searchterm) && ($language == "english-telugu")){ $meta_title = ucwords($searchterm) . " Meaning in Telugu Meaning of " . ucwords($searchterm); $meta_keywords = "Telugu Meaning of " . ucwords($searchterm) . ", Telugu to English Dictionary, Online Telugu Dictionary, Telugu Meanings, Telugu Vocabulary"; $meta_description = "Telugu Meaning of " . ucwords($searchterm) . " or Meaning of " . ucwords($searchterm) . " in Telugu. Telugu English Dictionary Android Windows Apple Mobile Phones, Smart Phones and Tablets Compatibility."; } ?>
include "index-meta-css.html"; ?>
$meaning = trim($meaning);
if (!empty($meaning)) display_list($meaning, "####");
else{
echo "No direct telugu meaning for '$english_word' has been found. ";
if (!empty($related_phrase) && !empty($synonym)) echo "Check out the related phrases or try the synonyms. ";
else if (!empty($related_phrase)) echo "Check out the related phrases. ";
else if (!empty($related_phrase) && !empty($synonym)) echo "Try the synonyms. ";
echo "
";
}
?>
display_list($related_phrase, "####"); ?>
} if (!empty($synonym)){ ?>display_list($synonym, "####"); ?>
} ?>
$meaning = trim($meaning);
if (!empty($meaning)) display_list($meaning, "####");
else{
echo "No direct telugu meaning for '$english_word' has been found. ";
if (!empty($related_phrase) && !empty($synonym)) echo "Check out the related phrases or try the synonyms. ";
else if (!empty($related_phrase)) echo "Check out the related phrases. ";
else if (!empty($related_phrase) && !empty($synonym)) echo "Try the synonyms. ";
echo "
";
}
?>
display_list($related_phrase, "####"); ?>
} if (!empty($synonym)){ ?>display_list($synonym, "####"); ?>
} ?>