Main (PHP)
3rd Party Streams
Resources
Code Snippets
Affiliates
DB_common::freePrepared() DB_common::freePrepared() -- Releases resources associated with a prepared SQL statement
Description
Removes the memory occupied by the internal notations that keep track
of prepared SQL statements.
Does not delete the DB_result
object itself.
Parameter
resource
$stmt
statement resource identifier returned from
prepare()
Return value
boolean - Returns TRUE on success, FALSE on failure.
Note This function can not be called
statically.
Example Example 26-1. Using freePrepared()
<?php
// Once you have a valid DB object named $db...
$sth = $db->prepare('INSERT INTO numbers (number) VALUES (?)');
$db->execute($sth, 1);
$db->freePrepared($sth);
?>
Top Sponsor
Sponsors
Sponsors
Advertisting
Affiliates