MySQL query with multiple 'OR' statements

后端 未结 3 399
粉色の甜心
粉色の甜心 2021-01-27 11:39

I have a query, that I have tested outside of PHP directly on SQL and still getting the same problem

The idea being that $currentArtist is sent through using the GET met

3条回答
  •  闹比i
    闹比i (楼主)
    2021-01-27 11:51

    SELECT *
      FROM events e
     WHERE '$currentArtist' IN (e.event_artist1,e.event_artist2,e.event_artist3);
    

提交回复
热议问题