//要想让php与pdo 就必须在php.ini里面修改一个参数把extension=php_pdo.dll ";"去了。
//
$path ="d:pdoddSpiderResult.db3";
$conn = new PDO("sqlite:$path");
$array=array('','','');
if( $conn )
{
echo ('pdo 连接正常connection pdo success');
}
else
{
echo ('pdo php cnnection pdo fail ,plase check database server!');
}
foreach ($conn->query('SELECT * FROM content limit 0,1') as $row)
{
print_r($row);
die();
}
//本站原创www.111cn.net