Cubrid Functions
PHP Manual

cubrid_free_result

(PHP 4, PHP 5)

cubrid_free_resultFrees the memory occupied by the result data

Description

bool cubrid_free_result ( resource $result )

This function frees the memory occupied by the result data. It returns TRUE on success or FALSE on failure.

Parameters

result

This is the result handle that is evaluated. This result is obtained by a call to cubrid_execute().

Return Values

TRUE on success.

FALSE on failure.

Examples

Example #1 cubrid_free_result() example

<?php
    $link 
cubrid_connect("localhost"30000"demodb2""dba""");
    if (!
$link)
    {
        die(
'Could not connect.');
    }
    
$query 'SELECT id, name, address, salary FROM employees';
    
$result cubrid_execute($link$query);
    if (
$result
    {
        
$row cubrid_fetch_assoc($result);
        
/* Now we free up the result and continue on with our script */
        
cubrid_free_result($result);
        echo 
$row['id']."<br>".$row['address'];
    }
?>

The above example will output:

Result:
1
1st Avenue, New York

Cubrid Functions
PHP Manual