Home > PHP > Function > > dbplus_update()

dbplus_update()

dbplus_update - Update specified tuple in relation

Syntax

int dbplus_update (resource $relation, array $old, array $new)

Arguments

  • relation - A relation opened by dbplus_open().
  • old - The old tuple.
  • new - The new tuple.

Description

dbplus_update() replaces the old tuple with the data from the new one, only if the old completely matches a tuple within relation.

Version

PHP 4 <= 4.1.0, PECL dbplus >= 0.9

Return value