Vincent and Matjaz have already answered your question, but I thought I'd add my $0.02 USD 🙂
When you place something inside single quotes, the parser does not do variable expansion or replacement.
You could probably use:
$fieldvalues=$row["$string"];
and have it work correctly since the parser will do the variable replacement.
-Rich