Something is wrong, because before I started to change this line, the same construction worked correctly, and now I always have true for any value of $input , why is that?
if ($wrd = mysqli_query($link, "SELECT dict_id FROM dict_word WHERE dict_word='".$input."'")) {
empty()? - Telion