Kód:
function dict($term_specification) {
global $my_language, $_default_language;
if (!$my_language) $my_language = $_default_language;
$sql = "select synonym from dictionary, term_specification where term_specification.term_specification = '$term_specification' and term_specification.id_term_specification = dictionary.id_term_specification and dictionary.id_language = '$my_language'";
$query = mysql_query($sql);
$result = mysql_fetch_array($query);
return htmlspecialchars($result['synonym']);
}
Takto to vypadá v functions.inc.php na riadkoch niekde medzy 20 a 30 ...
Príkaz --- Query
SQL dotaz --- SHOW FULL PROCESSLIST