PHP.nl

mysql_thread_id

mysql_thread_id

Return the current thread ID

Waarschuwing: > mysqli_thread_id

 **mysql_thread_id** resource $link_identifier

Retrieves the current thread ID. If the connection is lost, and a reconnect with is executed, the thread ID will change. This means only retrieve the thread ID when needed. mysql_ping

The thread ID on successreturn.falseforfailure.

Voorbeeld: example

<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
$thread_id = mysql_thread_id($link);
if ($thread_id){
    printf("current thread id is %d\n", $thread_id);
}
?>
current thread id is 73

mysql_ping``mysql_list_processes