Page 1 of 1

Store primary key as session variable after insert

Posted: 2015-11-12 01:31
by energylevels2012
How to add the primary key as a session variable after an insert transaction please?

Re: Store primary key as session variable after insert

Posted: 2015-11-14 16:40
by Fred
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

Re: Store primary key as session variable after insert

Posted: 2015-11-30 07:19
by energylevels2012
thanks will have a look at that ....