| |
dbase_add_record (PHP 3, PHP 4, PHP 5) dbase_add_record -- Adds a record to a database Descriptionbool dbase_add_record ( int dbase_identifier, array record )
Adds the given data to the database.
Parameters
- 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_add_record()
will fail.
Note:
If you're using dbase_get_record() return value for this
parameter, remember to reset the key named deleted.
Return Values
Returns TRUE on success or FALSE on failure.
Examples
Example 1. Inserting a record in a dBase database
<?php
// open in read-write mode $db = dbase_open('/tmp/test.dbf', 2);
if ($db) { dbase_add_record($db, array( date('Ymd'), 'Maxim Topolov', '23', 'max@example.com', 'T')); dbase_close($db); }
?>
|
|
Copyright © 1997 - 2007 by the PHP Documentation Group. This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later. A copy of the Open Publication License is distributed with this manual, the latest version is presently available at http://www.opencontent.org/openpub/.
Please see full copyright text at http://www.php.net/manual/en/copyright.php
Original version of the above documentation is available at http://www.php.net/manual/en/
|
- Please click on Perl activestate windows sql server content delivery system
- Please Also click on our Web developers Showcase
|