I have a MySQL cluster... and my database schematics calls for a new database to be created for every new registered user. I'm trying to write this code where every db will be named after the users ID. I've got this far... but I'm needing help in creating the code that will grab the last registered user's ID and create a database one up from the last registered user. For example:
Last registered users id: 1
the code will take this and one up it:
Next registered users id: 2
how do i write the code that will decide what the last registered users id is.
Any help?
Thanks in advance!
- Mike