PDA

View Full Version : mysql help - search on 2 columns



Blue Cat Buxton
09-18-2006, 05:36 AM
Is it possible to easily search MYSQL with a php query, on 2 columns at the same time,ie color='red' AND size='medium' for example.

If so how?

stymiee
09-18-2006, 06:06 AM
Yes and just like you did it:

WHERE color = 'red' AND size = 'medium';

Blue Cat Buxton
09-18-2006, 06:26 AM
doh!

I was convinced I had tried that.

Many thanks