Toms Homepage
  Home    Downloads    Your Account    Forums  
  Create an account
Modules
· Home
· Games
· My Gallery
· PHP Manual
· PHP-Nuke HOWTO
· Web Links
· Your Account
 
Who's Online
Welcome, Anonymous
Nickname

Password

Security Code
Security Code
Type Security Code


(Register)

Membership:
Latest: gfkcwollbs
New Today: 354
New Yesterday: 499
Overall: 62163

People Online:
Visitors: 114
Members: 23
Total: 137

Online Now:
COM LourdesSi
COM EarleneGi
 MicaelaFH
COM LeighCamb
COM ShawneeRv
COM Sommer04R
COM Annetta19
Germany WFITony
 ToniaGilc
COM VelvaHans
COM TedN78
COM KarineT63
 Heather53
Sweden KandaceMo
France Shelli336
 RoxanneBr
COM TanishaAn
COM KandaceBe
COM GTQBarney
COM TheodoreX
COM UtePierso
COM TerranceP
 ArmandoFe
 
mysql_thread_id

mysql_thread_id

(PHP 4 >= 4.3.0, PHP 5)

mysql_thread_id -- Return the current thread ID

Description

int mysql_thread_id ( [resource link_identifier] )

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.

Example 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() and mysql_list_processes().

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2004 by Tom Nitzschner.
Web site engine code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.109 Seconds

:: VereorLCARS phpbb2 style by Vereor :: PHP-Nuke theme by www.nukemods.com ::