First of all, did you know you could condense all that code to this?
print '<font title='. $row['variable'] . '>' $row['word'] . '</font>';
(A period concatenates the strings together).
Now, on to your problem.
You mentioned the type is VARCHAR. That's not a complete column type in MySQL, as VARCHAR requires a char limit too. What's the exact type? VARCHAR(20) ? VARCHAR(255) ?
Also, how is the data inserted into the field 'word' in MySQL? Have you tried manually going into MySQL using a GUI or the CLI and seeing what the 'word' column actually contains?
The column name 'word' sounds like it was meant to only contain a 'word'. More information about your setup is required here.