| mysql_thread_id() | ใช้คืนค่า หมายเลข thread ปัจจุบัน |
|---|
function:mysql_thread_id ( resource );
return type:int
content:ใช้คืนค่า หมายเลข thread ปัจจุบัน ( ถ้าเชื่อมต่อใหม่ก็จะได้หมายเลขใหม่ ) โดยจะคืนค่า false ถ้าเกิดความผิดพลาดขึ้น
example:$conn = mysql_connect ( "localhost", "root", "1234" ); echo mysql_thread_id ( $conn );