Cubrid Functions
PHP Manual

cubrid_drop

(PHP 4, PHP 5)

cubrid_dropIs used to delete an instance

Description

int cubrid_drop ( int $conn_handle , string $oid )

The cubrid_drop() function is used to delete an instance from database by using oid.

Parameters

conn_handle

Connection handle.

oid

Oid of the instance that you want to delete.

Return Values

TRUE, when process is successful.

FALSE, when process is unsuccessful.

Examples

Example #1 cubrid_drop() example

<?php
$deloid 
cubrid_get ($con$oid"order");
$res cubrid_drop ($con$deloid);  
if (
$res) {
   
cubrid_commit ($con);
} else {
   
cubrid_rollback ($con);
}
?>

See Also


Cubrid Functions
PHP Manual