I'm using mysql_connect() to get $thread_id for using with next query. but I read from php.net that mysql_connect() is deprecated as of PHP 5.5.0. I tested and found found out the $thread_id is not working with the mysqli_connect().
mysql_connect: Opens or reuses a connection to a MySQL server.
mysqli_connect: Opens a connection to the MySQL Server running on.
currently, my working code is:
$link = mysql_connect($this->_wpdb->dbhost, $this->_wpdb->dbuser, $this->_wpdb->dbpassword);
$thread_id = mysql_thread_id($link);
when mysql_connect() get removed in the future, how can I change my code to work with mysqli ?