Unstoppable Domains

PHP Lock Application??

Spaceship Spaceship
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.
Unstoppable DomainsUnstoppable Domains
0
•••
0
•••
If you have mySQL 5 you could also use stored procedures, transactions, the works :)
 
0
•••
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back