This does not work:
$stmt = $pdo->prepare("SELECT * FROM location ORDER BY ? ASC");
$orderValue = "location_name";
$stmt->execute([$orderValue]);
How can I ortder the result by location_name?
This does not work:
$stmt = $pdo->prepare("SELECT * FROM location ORDER BY ? ASC");
$orderValue = "location_name";
$stmt->execute([$orderValue]);
How can I ortder the result by location_name?