Hello all,
I am relatively new to the php / sql scene. Just starting my first "real" project after getting a grasp on the basics of both, but I have come across a stumper that sounds to me like it should be easy for you pros 😉
Is there a built in function, in either PHP or MYSQL, that will return the value of the highest number for an auto_incremented integer?
I've done a bit of digging, and so far haven't found one. I was considering putting the contents of the column into a numerically indexed array, using rsort() and pointing to $array[0]. That would work, but seems like a lot to go through, especially if there IS a function to do it for me! 🙂
If anyone knows, post it on up!
Thanks,
~BR