>>177のとき、このテーブルからデーターを取り出すコードを、
以下のようにかいた。

<?php


try {
$dbh = new PDO('sqlite:test2','', '');
/*** echo a message saying we have connected ***/
echo 'Connected to database<br />';

/*** The SQL SELECT statement ***/
$sql = "SELECT * FROM table2";

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

foreach ($dbh->query($sql) as $row)
{
print $row['name'] .' - '. $row['value'] . '<br />';
}

/*** close the database connection ***/
$dbh = null;
}
catch(PDOException $e)
{
echo $e->getMessage();
}
?>