Discussion in 'XenForo Development Discussions' started by James, May 31, 2011.
What's the easiest way to get the highest registered user ID in XF for use in PHP code?
Via a query:
SELECT MAX(user_id) FROM xf_user
So there's no predefined function? Alright, thanks Mike
No, as IDs really aren't of interest to us except for looking up particular ones. If you want the most recently registered user (meeting our necessary criteria), that's a different story...
Separate names with a comma.