Unstoppable Domains โ€” Get your daily AI drops report

PHP Lock Application??

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

Ik

Quality //VIP Member
Impact
8
Hi,

Is there a way to lock the application similar to Application.Lock in ASP.NET?

The reason is that I have an insert query that takes place in one of my PHP pages, and I want to get the auto ID from that record once the insert query takes place.

Or maybe there is a way to do that in one query? something like sending the ID back to the query once the record is inserted?

Thanks
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
0
•••
0
•••
If you have mySQL 5 you could also use stored procedures, transactions, the works :)
 
0
•••
Appraise.net
Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back