I'm trying to get results from the database and I would like to show the info starting from the last ID, not the first one, is this possible?
$query = $db->prepare("SELECT * FROM grafica WHERE ID = :id");
$query->bindParam(':id', $id);
$query->execute();
$result = $query->fetchAll();
foreach ($result as $row) {
}