Store primary key as session variable after insert

Any tips and tricks that has to with the ADDT that doesn't fit into one of the other categories
energylevels2012
Posts: 58
Joined: 2012-07-22 16:41

Store primary key as session variable after insert

Post by energylevels2012 » 2015-11-12 01:31

How to add the primary key as a session variable after an insert transaction please?

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: Store primary key as session variable after insert

Post by Fred » 2015-11-14 16:40

Just a quick google search on how to get the last inserted record id.
Hope it helps.

http://www.w3schools.com/php/php_mysql_ ... lastid.asp

energylevels2012
Posts: 58
Joined: 2012-07-22 16:41

Re: Store primary key as session variable after insert

Post by energylevels2012 » 2015-11-30 07:19

thanks will have a look at that ....

Post Reply