Jump to content

show next available row


adzie

Recommended Posts

Can you explain further how you want to acquire it?  If you want to know the next id after you've inserted one, then mysql_insert_id() + 1 will give you the next id available.  If you simply want to know that next id, run a query select all ids sort by id descending and limit your results to one, then just add one to that number.

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.