One step closer!
now i get this error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND cpm >' at line 1
none of that looks bad to me.. unless for some reason the 2nd variable isnt being populated..
in that case, i switched cpm > $cpmval and the tag = $tagval
the error is the same..