?
Solved

PHP Query

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
I recently worked on a Wordpress site that utilized the popular ContactForm7 (https://contactform7.com/) plug-in that only sends an email and does not save data. The client wanted the data saved to a custom CRM database. This is my solution.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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.

590 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