Home > PHP > Function > > dbplus_getunique()

dbplus_getunique()

dbplus_getunique - Get an id number unique to a relation

Syntax

int dbplus_getunique (resource $relation, int $uniqueid)

Arguments

  • relation - A relation opened by dbplus_open().
  • uniqueid

Description

Obtains a number guaranteed to be unique for the given relation and will pass it back in the variable given as uniqueid.

Version

PHP 4 <= 4.1.0, PECL dbplus >= 0.9

Return value

Returns DBPLUS_ERR_NOERR on success or a db++ error code on failure.