I use this code to show data from a selected table by the user

```
$query  = 'SELECT * FROM '.$Nom_table;

$query  = $dbh -> query($query);

$result = $query -> fetchAll(PDO::FETCH_ASSOC);

echo '<table>';

while(list ($key, $array) = each($result))
{
    foreach($array as $table)
    {
        echo $table.'';
    }
}

echo '</table>';

```

by I don't know the name of the columns to show data so what's the solution to show all data from any tables ?