Jump to content


Photo

php for ASP@@IDENTITY


  • Please log in to reply
2 replies to this topic

#1 bhakti_thakkar

bhakti_thakkar
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 12 September 2006 - 07:33 AM

hi,
can some one please tell me how to find out the current id generated by the mysql statement i.e equivalent to @@IDENTITY in ASP

Thanks and cheers
Bhakti ThakKar

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 12 September 2006 - 09:16 AM

Prehaps you want to use the mysql_insert_id() function. This function grabs the last generated id by the auto_increment field.

#3 bhakti_thakkar

bhakti_thakkar
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 12 September 2006 - 09:25 AM

Thanks wildteen88,
This is what i was looking for.
Goodluck and cheers
Bhakti Thakkar




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users