<?php
$stmt3 = $pdo->query("SELECT * FROM language_solved WHERE 1")->fetchAll(PDO::FETCH_UNIQUE);
print_r($stmt3);
$stmt2 = $pdo->query("SELECT * FROM language WHERE 1");
while ($row2 = $stmt2->fetch())
{
echo '<tr>';
echo '1';
foreach ($stmt3 as $key => $value) {
echo "<th>".$value."</th>";
foreach ($value as $value) {
echo "<th>".$value."</th>";
}
}
echo '</tr>';
}
?>