Home > PHP > Function > dBase > dbase_replace_record()

dbase_replace_record()

dbase_replace_record - Replaces a record in a database

Syntax

bool dbase_replace_record (int $dbase_identifier, array $record, int $record_number)

Arguments

  • dbase_identifier - The database link identifier, returned by dbase_open() or dbase_create().
  • record - An indexed array of data. The number of items must be equal to the number of fields in the database, otherwise dbase_replace_record() will fail. Note: If you\'re using dbase_get_record() return value for this parameter, remember to reset the key named deleted.
  • record_number - An integer which spans from 1 to the number of records in the database (as returned by dbase_numrecords()).

Description

Replaces the given record in the database with the given data.

Version

PHP 4, 5

Return value

Returns TRUE on success or FALSE on failure.