PHP mysql_thread_id() May 25, 2012 Pramod T P It returns the current thread ID Example <?php mysql_connect(“localhost”, “root”, “phpcode”); $tables = mysql_list_tables(“database_name”); echo mysql_thread_id(); ?> Output 1097