User will enter 2 variables in the form: user id (variable 1) and variable 2. user id is the name of 1st column in MySQL db. php has to locate the user id and parameter that belongs to user id under column 'variable 2'. Basically, how can I use php variable as column name in MySQL statement?

Thanks.