mixed pq\Result::fetchRow([int $fetch_type = pq\Result::$fetchType])

Iteratively fetch a row.

Params:

Returns:

Throws:

Example:

<?php

try {
    $connection = new pq\Connection;

    $result = $connection->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";
}

?>