Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP mysqli_kill() Function

PHP mysqli_kill() Function

PHP MySQLi Reference Manual PHP MySQLi Reference Manual

Example

Return the current connection's thread ID, then kill the connection:


Definition and Usage

The mysqli_kill() function asks the server to kill a MySQL thread specified by processid the specified parameter.


Syntax

mysqli_kill(

connection,processid

)

;

Parameters Description
connection Required. Specifies the MySQL connection to use.
processid Required. The mysqli_thread_id() thread ID returned by.

Technical Details

Return Value: Returns TRUE on success, FALSE on failure.
PHP Version: 5+

PHP MySQLi Reference Manual PHP MySQLi Reference Manual