Jump to content

Finding out the highest number in an auto-incrementing table


FinalFrontier

Recommended Posts

I have a row in a MySQL table called id, which auto-increments.

 

I was wondering if anyone knows a PHP solution to find out what the highest number in the row is?

 

I am thinking perhaps execute a MySQL query that will list the highest number, and then echo the result, like $row[id] in PHP?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.