Here is my code:
$query2 = "SELECT fld_id, fld_vl FROM clnt_data
$result2 = mysql_query($query2);
mysql_close();
/Loads the user data into an array
$clientData2 = mysql_fetch_array($result2, MYSQL_ASSOC);
foreach($clientData2 as $k=>$v) $$k = $v;
The foreach statement I used above puts the column name into the $k variable and then puts the actual values for fld_id and fld_vl into the $v variable.
Instead I want the fld_id value to be the variable name and then set that variable equal to the fld_vl.
I hope this makes sense.