Join Up!
96811 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousmysql_tablenamemysql_unbuffered_querynext
Last updated: Mon, 28 Oct 2002
view the printer friendly version or the printer friendly version with notes or change language to Czech | Finnish | Spanish

mysql_thread_id

(PHP 4 CVS only)

mysql_thread_id -- Zeigt die aktuelle Thread ID an

Beschreibung

int mysql_thread_id ( [resource Verbindungs-Kennung])

mysql_thread_id() liefert die aktuelle Thread ID. Ist die Verbindung abgerissen und Sie bauen diese wieder mit mysql_ping() auf, wechselt die Thread ID. Das bedeutet, Sie sollten die Thread ID nicht abfragen und für eine spätere Verwendung speichern. Sie sollten diese zu einem Zeitpunkt abfragen an dem Sie die Thread ID verwenden möchten.

Beispiel 1. mysql_thread_id() Beispiel

<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
$thread_id = mysql_thread_id($link);
if ($thread_id){
    printf ("Aktuelle Thread ID ist %d\n", $thread_id);
}
?>

Das obige Beispiel gibt folgendes aus:
Aktuelle Thread ID ist 73

See also: mysql_ping(), mysql_list_processes().

User Contributed Notes
mysql_thread_id
add a note about notes
There are no user contributed notes for this page.
previousmysql_tablenamemysql_unbuffered_querynext
Last updated: Mon, 28 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST