note 50023 deleted from function.mysql-insert-id by cmb
| From: | cmb@php.net | Date: | Sun, 16 Feb 2020 13:30:12 +0000 |
| Subject: | note 50023 deleted from function.mysql-insert-id by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-214113@lists.php.net to get a copy of this message | ||
Note Submitter: brodseba AT brodseba DOT com
----
It's possible to do the same with M$ Server.
function odbc_insert_id()
{
$query = "SELECT @@IDENTITY AS ID;";
$result = odbc_exec($this->m_rConnectionID, $query);
$row = odbc_fetch_object($result);
return $row->ID;
}