int mysql_thread_id ([ resource $link_identifier ] )
Retrieves the current thread ID. If the connection is lost, and a reconnect with mysql_ping() is executed, the thread ID will change. This means only retrieve the thread ID when needed.
The thread ID on success or FALSE on failure.