prepare("select * from userinfo where id=?"); $rs = $query->execute(array(1)); var_dump($rs); echo count($query->fetchAll());