I need to create the following select statement:
select * from merchandise_sizes where $column_name !=0
I do not know the name of the column for the WHERE, it is a variable pulled from the database in an earlier select statement. I have echoed $column_name, and I have successfully set the variable, but the query statement will not accept a variable. If i hard code the where statement, of course it works.
But, how can I use WHERE if the column name is a variable?
Thanks