string in database row problem

wxdqz

New Member
I am trying this without success;

$string="fieldname";

later in script;

$fieldvalues=$row['$string'];

The problem lies in this part : ['$string']

How can I write this part using a string instead of just the fieldname?

Thanks
 
Back
Top