Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PHP Query

Posted on 2015-02-21
3
Medium Priority
?
90 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 111

Accepted Solution

by:
Ray Paseur earned 2000 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 111

Expert Comment

by:Ray Paseur
ID: 40623434
'Welcome!

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

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

916 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