Skip to main content
Inspiring
February 14, 2008
Answered

Insert Record

  • February 14, 2008
  • 2 replies
  • 403 views
If I use the Insert Record behavior (php) to add a record to a mysql table is there a way to automatically return the value of an auto-increment field? Thanks in advance for any suggestions.
This topic has been closed for replies.
Correct answer Newsgroup_User
MichaelS wrote:
> If I use the Insert Record behavior (php) to add a record to a mysql table is there a way to automatically return the value of an auto-increment field? Thanks in advance for any suggestions.

http://docs.php.net/manual/en/function.mysql-insert-id.php

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

2 replies

MichaelSAuthor
Inspiring
February 14, 2008
Gracias! I knew it had to be simple - just didn't know how to search for it. Thanks for the reply.

Michael
Newsgroup_UserCorrect answer
Inspiring
February 14, 2008
MichaelS wrote:
> If I use the Insert Record behavior (php) to add a record to a mysql table is there a way to automatically return the value of an auto-increment field? Thanks in advance for any suggestions.

http://docs.php.net/manual/en/function.mysql-insert-id.php

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/