Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Insert Record

Explorer ,
Feb 14, 2008 Feb 14, 2008
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.
TOPICS
Server side applications
368
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Feb 14, 2008 Feb 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/
Translate
LEGEND ,
Feb 14, 2008 Feb 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/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 14, 2008 Feb 14, 2008
LATEST
Gracias! I knew it had to be simple - just didn't know how to search for it. Thanks for the reply.

Michael
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines