SELECT CASE WHEN THEN (SELECT)

后端 未结 4 2191
孤街浪徒
孤街浪徒 2020-12-18 00:03

I am trying to select a different set of results for a product depending on a product type. So if my product should be a book I want it to look up the UPC and Artist for a n

4条回答
  •  醉酒成梦
    2020-12-18 01:02

    I ended up leaving the common properties from the SELECT queries and making a second SELECT query later on in the page. I used a php IF command to call for different scripts depending on the first SELECT query, the scripts contained the second SELECT query.

提交回复
热议问题