mfcdb_close

Close a database table.


Prototype:

boolean mfcdb_close ( resource $handle )




This function close the table previously opened and identified by resource $handle passed as argument.

RETURN : The function returns TRUE if all is ok or FALSE.

Example

<?php
$resource = mfcdb_open("mydatabase");
 
if($resource == FALSE) {
  die("An error occurred opening table, error is: ".mfcdb_error()."\n");
}
 
echo "Resource dump: ".print_r($resource, true)."\n";
 
if(mfcdb_close($resource) == FALSE) {
  die("An error occurred closing table, error is: ".mfcdb_error()."\n");
}
 
?>
documentation/mfcdb_close.txt · Ultima modifica: 2008/08/22 23:09 da gchiesa