PHP Doku:: Frees the memory occupied by the result data - function.cubrid-free-result.html

Verlauf / Chronik / History: (5) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatenbankerweiterungenAnbieterspezifische DatenbankerweiterungenCubridCubrid Funktionencubrid_free_result

Ein Service von Reinhard Neidl - Webprogrammierung.

Cubrid Funktionen

<<cubrid_field_type

cubrid_get_charset>>

cubrid_free_result

(PECL CUBRID >= 8.3.0)

cubrid_free_resultFrees the memory occupied by the result data

Beschreibung

bool cubrid_free_result ( resource $req_identifier )

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

Parameter-Liste

req_identifier

This is the request identifier.

Rückgabewerte

TRUE on success.

FALSE on failure.

Beispiele

Beispiel #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'];
    }
?>

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

Result:
1
1st Avenue, New York

Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)