<?php
$db=new PDO("mysql:host=localhost;dbname=test","root","");
$db->query("set names GBK");
$rs=$db->query("select * from `reg`");
while ($rs=$db->fetch())
{
  print_r($rs);
}
?>
我想问下大家为什么PDO类无法访问Fetch()函数,我用的是php5以上版本,有内置PDO类。