Hi,
I'm trying to make a script which creates MySQL tables and everytime one is made the name is unique.
I first tried using the time() function to get the current time code in PHP and use that as the name but it seems that won't always be unique.
So then I thought I could create a table and assign it a name using a random number I could generate.
The issue there is that I would still need to check that the number generated had not been used before.
So does anyone know of a way to check if the name I'm about to assign to my table is already taken, or does anyone know of a better way to achieve what I'm trying to achieve.
Thanks,
Matt