I have tried that, but all i get is a blank value for $$fieldname. Code is below using $UpdateFieldName to get field, and trying to use $$UpdateFieldName to access the variable. Will this not work? Trying to pull information from a form, had similiar problems using an array, as php did not see it as an array.
//from first part of page
$MainFields = mysql_list_fields($MainDBName, $MainTable, $link);
$MainColumns = mysql_num_fields $MainFields);
//in the test statement, one day to be used in insert/update
for ($nColumnsCounter = 0; $nColumnsCounter < $MainColumns; $nColumnsCounter++)
{ $UpdateFieldName = mysql_field_name($MainFields, $nColumnsCounter);
echo $$UpdateFieldName ."<br />\n";
}