mixed
pq\Result::fetchRow([int
$fetch_type = pq\Result::$fetchType])Iteratively fetch a row.
int
$fetch_type#array
, numerically indexed for pq\Result::FETCH_ARRAY
array
, associatively indexed for pq\Result::FETCH_ASSOC
stdClass
instance for pq\Result::FETCH_OBJECT
NULL
, when iteration ends.exec("SELECT id, name, email FROM accounts WHERE email LIKE '_@%'"); while (list($id, $name, $email) = $result->fetchRow()) { echo "ID: {$id}\n"; echo "Name: {$name}\n"; echo "Mail: {$email}\n\n"; } } catch (\pq\Exception $e) { echo $e->getMessage(), "\n"; } ?>