PHP 忒聊
綴豖
ヶ輛
mysql_thread_id
(PHP 4 = 4.3.0)
Description
mysql_thread_id() returns the current thread ID. If the connection is lost and you reconnect with mysql_ping(), the thread ID will change. This means you should not get the thread ID and store it for later. You should get it when you need it.
瞰赽 1. mysql_thread_id() 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);}?
The above example would produce the following output:
current thread id is 73
See also: mysql_ping(), mysql_list_processes().
綴豖
れ萸
ヶ輛
mysql_tablename
奻珨撰
mysql_unbuffered_query