0

Hi guys i need help with mysqli

I want to order by fiend with specific value, here is 1 field

$results = mysqli_query($con,"SELECT * FROM `data` ORDER BY field(mu,'Legija Stranaca Elite','Legija Stranaca') ASC, level Desc"); 

how do apply a 2nd ORDER BY using the same

4

1 回答 1

0

您只需按部分语句的顺序使用另一个 field() 条件,例如

$results = mysqli_query($con,"SELECT * FROM `data` ORDER BY field(mu,'Legija Stranaca Elite','Legija Stranaca') ASC, field(anotherfield,'Something Else','Another thing') ASC, level Desc");
于 2013-05-25T20:48:25.510 回答