Jump to content

[SOLVED] dumb question


dadamssg

Recommended Posts

if i have a column title category. How would i query for multiple categories? i know that this will pull up only 'sports'.

 

SELECT * FROM test WHERE event = 'sports' ORDER BY start ASC LIMIT 5

 

whats the correct syntax for doing something like this

 

SELECT * FROM test WHERE event = 'sports','performance','random' ORDER BY start ASC LIMIT 5

 

??

Link to comment
https://forums.phpfreaks.com/topic/172040-solved-dumb-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.