Closed pusand closed 5 years ago
I encountered a problem
$values = '5,2,4'; $result = $database->select('movie','*',[ "OR" => [ "id" => explode(',',$values), ] ]);
output 2,4,5 !! but i need output 5,4,2 don't sort
help me. !!
You need to use order by customized order.
Read Order Condition section from https://medoo.in/api/where
"ORDER" => [ "id" => ["5", "2", "4"] ]
Thank you very much
I encountered a problem
$values = '5,2,4'; $result = $database->select('movie','*',[ "OR" => [ "id" => explode(',',$values), ] ]);
output 2,4,5 !! but i need output 5,4,2 don't sort
help me. !!