mysql_thread_id
Posted: Tue Jul 24, 2007 8:36 am
Hi
Im creating a class where I log to a file mysql operations like connect, query and close.
This is to track down errors and misplaced data.
There not much info on mysql_thread_id($dblink), but it looks like this returns the process thread id upon opening a mysql connection until its lost or closed.
So how many ever queries I execute after opening a connection, this therad-id (of $dblink) will remain the same till the end of the script right - (or till the connection ends) ?
Thanks
Im creating a class where I log to a file mysql operations like connect, query and close.
This is to track down errors and misplaced data.
There not much info on mysql_thread_id($dblink), but it looks like this returns the process thread id upon opening a mysql connection until its lost or closed.
So how many ever queries I execute after opening a connection, this therad-id (of $dblink) will remain the same till the end of the script right - (or till the connection ends) ?
Thanks