I have a query which in Psuedo MYSQL says:
"SELECT * FROM table WHERE col1 = $x OR col2 = $x"
Now I am iterating through each line of the results but want to determine for each one which column x is in. Therefore I want to be able to return column_name
where the variable $x == $x
in the table.
I have tried using fetch_field()
but to no avail.