2
I’m pulling values with order by and they’re not right in either ASC or DESC.
My code is this, how can I fix this mistake?
$sql = 'SELECT *, Player.ID AS ID, LEFT(FirstName,1) AS FirstName, FirstName AS FName FROM Player INNER JOIN OverallRatings ON OverallRatings.PID = Player.ID INNER JOIN franchises ON franchises.GameID = Player.CurrentTeamID '.$where.' ORDER BY '.$sort.' '.$by.' LIMIT 250';
Print of the order.
And what kind of data is the field used for sorting? Probably not numerical.
– anonimo