mixed pq\Gateway\Table::find([array $where = NULL[, string $order = NULL[, int $limit = 0[, int $offset = 0[, string $lock = NULL]]]]])

Find rows in the table. See pq\Gateway\Table::execute() and pq\Gateway\Table::onResult().

Params:

Returns:

Example:


<?php

use pq\Gateway\Table;

$table = new Table("account_email");
$transaction $table->getConnection()->startTransaction();

$rowset $table->find(["email=" => "mike@php.net"], null00"UPDATE");

$rowset->apply(function(pq\Gateway\Row $row) {
    
$row->email "mike@PHP.net";
});

$rowset->update(false);
$transaction->commit();

?>