I've been trying to do this for a while, searched all over the Googlenet for the answer and have come up with nothing.
There are certain sections of my site where I only want to display MySQL entries that correspond with two or more possible values of a field. That sounds really convoluted, so I'll just write up what I have.
Code:
$queryRecordset = "SELECT * FROM tablename WHERE fieldname=('value_a' || 'value_b' || 'value_c')";
Obviously, this isn't working. I've tried replacing || with && and commas, as well as with and without brackets. I'm not the most skilled with MySQL syntax, so I'm just working with what I know. Any help would be immensely appreciated.
|