note 62255 added to function.mssql-get-last-message

From: Date: Thu, 23 Feb 2006 12:29:47 +0000
Subject: note 62255 added to function.mssql-get-last-message
Groups: php.notes 
Request: Send a blank email to php-notes+get-104291@lists.php.net to get a copy of this message
If you want to view the last ID inserted, mssql_get_last_message() will not return this. MySQL have a function mysql_insert_id() that returns it. MSSQl don't. To resolve this, you must run this query: $query="SELECT @@IDENTITY as last_insert_id" mssql_query($query, $connection); and it will return the last ID inserted in the database. ---- Server IP: 200.185.109.103 Probable Submitter: 200.184.168.65 ---- Manual Page -- http://www.php.net/manual/en/function.mssql-get-last-message.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+62255 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+62255&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+62255&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+62255&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+62255&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+62255&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+62255&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+62255&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+62255&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#104291) next »