Cubrid Functions
PHP Manual

cubrid_set_add

(PHP 4, PHP 5)

cubrid_set_addIs used to insert a single element

Description

int cubrid_set_add ( int $conn_handle , string $oid , string $attr_name , string $set_element )

The cubrid_set_add() function is used to insert a single element to a set type attribute (set, multiset) you requested.

Parameters

conn_handle

Connection handle.

oid

Oid of the instance you want to work with.

attr_name

Name of the attribute you want to insert an element.

set_element

Content of the element you want to insert.

Return Values

TRUE, when process is successful.

FALSE, when process is unsuccessful.

Examples

Example #1 cubrid_set_add() example

<?php
cubrid_set_add 
($con$oid"friend""James");
cubrid_set_add ($con$oid"friend""Michael");
?>

See Also


Cubrid Functions
PHP Manual