maxdb_kill
maxdb->kill
Disconnects from a MaxDB server
&reftitle.description;
Procedural style:
boolmaxdb_kill
resourcelink
intprocessid
Object oriented style (method)
maxdb
bool
kill
intprocessid
This function is used to disconnect from a MaxDB server specified
by the processid parameter.
&reftitle.returnvalues;
&return.success;
&reftitle.examples;
Object oriented style
thread_id;
/* Kill connection */
$maxdb->kill($thread_id);
/* This should produce an error */
if (!$maxdb->query("CREATE TABLE myCity LIKE City")) {
printf("Error: %s\n", $maxdb->error);
exit;
}
/* close connection */
$maxdb->close();
?>
]]>
Procedural style
]]>
The above examples would produce the following output:
&reftitle.seealso;
maxdb_thread_id