I have a php variable called industry, what i want to do is query that variable against the mysql database. However the mysql database has five columns in which that variable might be present, as indicated below.
industry ------> industry 1 industry 2 industry 3 industry 4 industry 5
below is my current php code.
$query = "SELECT * FROM data where listing = 'rec' and industry='$industry'";
is there a way to query my php variable against all of the columns called industry?