Ygoramalho Posted October 25, 2015 Report Posted October 25, 2015 Hello, I wonder how to keep the list of drivers in order according to their number, not according to rank, see the problem in the following image, the number of Riders: 0003 and 0004 were for the end they passed the rank . I await answers, good night. Quote
Moderators Parkho Posted October 25, 2015 Moderators Report Posted October 25, 2015 You need to change your DB query to fetch data ordered by pilot ID. Try this: $sql = "SELECT * FROM phpvms_pilots ORDER BY pilotid" Quote
Moderators servetas Posted October 25, 2015 Moderators Report Posted October 25, 2015 A better way to do this is adding the following in your core/local.config.php file: Config::Set('PILOT_ORDER_BY', 'p.joindate ASC'); Quote
Ygoramalho Posted October 26, 2015 Author Report Posted October 26, 2015 Resolved, I added the following line in the core / local.config.php file: Config::Set('PILOT_ORDER_BY', 'pilotid'); Thank you all Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.