Hi,
I am using the following PHP functions to generate table names for my temporary tables:
$temptable=md5(uniqid(rand(),1)
Problem is that about 5% of the time, it generates mysql error messages because of the table name.
"You have an error in your SQL syntax near '7e7dc94bf8882321d25a9469c8ef71a5" is an example of the last one. Does mysql have restrictions on table names beginning with a number instead of alpha character? I don't understand what is causing the syntax error in the example above.
Does someone have suggestions on ways to generate temporary table names quickly without fear of duplicate names.