The logical error is that the php doesn't display the desired output for pronunciation. eg. the desired output is \ə-ˈchēv\ but this one \?-?ch?v\ is displayed in the browser.
while($row=mysql_fetch_array($result))
{
$out .= "English word: " .$row['word_en'] . "<br>";
$out .= "Pronunciation: " .$row['pronunciation'] . "<br>";
$out .= "Grammar: " .$row['grammar'] . "<br>";
$out .= "Definition: ".'<div style="width:600px; border:0px solid orange; margin-left: 90px; word-wrap:break-word; margin-top: -19px;">'. $row['definition'] . "</div>";
//iconv("UTF-8", "ISO-8859-1//TRANSLIT", $out), PHP_EOL; //displays error
echo $out;
}