Please enable JavaScript to view this site.

Navigation: » No topics above this level «

DAL method: Add() (Deprecated)

Scroll Prev Next More

 

Deprecated

This function is deprecated, and we recommend using the DB:Insert() function from Database API.

 

Inserts a new record into the database.

Syntax

Add()

Arguments

No arguments.

Return value

No return value.

Example

Insert new record into the database:

 

global $dal;
$tblEvents = $dal->Table("EventsTable");
$tblEvents->Value["event"]="First event";
$tblEvents->Value["public"]="yes";
$tblEvents->Add();

 

The corresponding SQL query:

 

Insert into EventsTable (event,public) values ('First event','yes')

See also:

DB API: Insert

DAL Method: Delete

Database API

About Data Access Layer

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software