note 16791 added to ref.odbc
| From: | ndle at wetworks dot com | Date: | Tue, 13 Nov 2001 21:01:32 +0000 |
| Subject: | note 16791 added to ref.odbc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-20806@lists.php.net to get a copy of this message | ||
I wish somebody would come up with a better way to return the ID of the record that was just
inserted for the unified odbc fuctions. PHP has the function mysql_insert_id()
why not odbc. I've have resorted to requerying the database and using the same data that
I've just inserted as the filtering parameters for the where part. Is there another function
for this? I don't want to have to insert a temp field and put a time stamp and requery for the
latest date or doing my lame way like I've mentioned above.
Thanks,
Le
--
http://www.php.net/manual/en/ref.odbc.php
http://master.php.net/manage/user-notes.php?action=edit+16791
http://master.php.net/manage/user-notes.php?action=delete+16791
http://master.php.net/manage/user-notes.php?action=reject+16791