PHP: dbase_add_record - Manual in Deutsh
PHP: dbase_add_record - Manual in French
PHP: dbase_add_record - Manual in Polish

You Are At PHP: dbase_add_record - Manual Area


recent searches:
include functions , variable functions , post functions...




If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.

PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.

PHP Manual
PrevNext

dbase_add_record

(PHP 3, PHP 4, PHP 5)

dbase_add_record -- Adds a record to a database

Description

bool 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);
}

?>

See Also

dbase_delete_record()
dbase_replace_record()

5
breloki z nadrukiem
środki do sprzątania
Prezenty
Najnowsze kasy fiskalne

Another Useful functions:


ref.dbase | function.dbase-replace-record | function.dbase-pack | function.dbase-open | function.dbase-numrecords | function.dbase-numfields | function.dbase-get-record | function.dbase-get-record-with-names | function.dbase-get-header-info | function.dbase-delete-record | function.dbase-create | function.dbase-close | function.dbase-add-record |


PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.