Solved

PHP Query

Posted on 2015-02-21
3
66 Views
Last Modified: 2015-02-21
In PHP how do you grab the last (Or highest) ID number that is auto increment?
0
Comment
Question by:rgranlund
  • 2
3 Comments
 
LVL 109

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 40623387
Do you mean MySQL?

If so, it's a query clause... ORDER BY id DESC LIMIT 1
0
 
LVL 7

Author Comment

by:rgranlund
ID: 40623400
Ahh haa!  Thanks.
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 40623434
'Welcome!

Thanks for the points and thanks for using E-E, ~Ray
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question