You could use something like this:
foreach ($_POST as $key => $value) {
if (is_numeric($key)) {
echo "$key => $value<br>";
}
}
Another way to do it would be to number them sequentially, and have a hidden field to store the database ID:
$index = 0;
foreach ($database_results as $row) {
echo "<input type='radio' name='radio_$index'>";
echo "<input type='hidden' name='id_$index' value='".$row['id'].">";
$index++;
}
Keep in mind that with either of these approaches, there is nothing preventing the user from specifying some other ID and altering records they aren't supposed to.