Recupera el ID del hilo actual. Si la conexión se ha
perdido, y se ejecuta una reconexión con
mysql_ping(), el ID del hilo
cambiará. Esto quiere decir que sólo obtenga el ID
del hilo cuando lo necesite.
Lista de parámetros
link_identifier
The MySQL connection. If the
link identifier is not specified, the last link opened by
mysql_connect() is assumed. If no such link is found, it
will try to create one as if mysql_connect() was called
with no arguments. If by chance no connection is found or established, an
E_WARNING level warning is generated.
<?php $enlace = mysql_connect('localhost', 'mysql_user', 'mysql_password'); $id_hilo = mysql_thread_id($enlace); if ($id_hilo){ printf("El ID del hilo actual es %d\n", $id_hilo); } ?>
Atención técnica y comercial: (54)-11-5031-1111 las 24 hs. los 365 días del año. ToWebs, (c) 2008
Virtucom Networks S.A Av. Belgrano 1586, piso 10 (C1093AAQ) Cap. Fed. Bs. As, Argentina.