只是最近转换PHP PDO Query
,我有点困惑ORDER BY
我有 2 个字段名和值我想订购这是我需要转换为 PDO 的旧数据
问题:我如何ORDER BY
在 PDO 中使用
$results = mysqli_query($con,"SELECT * FROM `supplies` ORDER BY field(citname,'Dejan Vemic','MitkoEzio','Sebatay','Ash2Ash','Dexter Sinister','dracoolinho','KALE Podgorica','Omerta NK','Pobor','Rachsuchtig','Snake0307','SrpskaCG','Vojvoda1389') ASC, field(day,'Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday')");
如果有人请帮忙,这是我目前的声明
$sql = 'SELECT citid, citname, worked, rankpoints, supplyamount, wassupplied, date, day FROM supplies';