Home > PHP > Function > > px_insert_record()

px_insert_record()

px_insert_record - Inserts record into paradox database

Syntax

int px_insert_record (resource $pxdoc, array $data)

Arguments

  • pxdoc - Resource identifier of the paradox database as returned by px_new().
  • data - Associated or indexed array containing the field values as e.g. returned by px_retrieve_record().

Description

Inserts a new record into the database. The record is not necessarily inserted at the end of the database, but may be inserted at any position depending on where the first free slot is found.

Version

PHP PECL paradox >= 1.4.0

Return value

Returns FALSE on failure or the record number in case of success.