php - i try to create table in mysql with use of random() function.?
I want to create able in mysql with random name of table name i try but cant created. this is my code
$temp_table=rand(1000,9999); $sql="CREATE TABLE $temp_table (FirstName CHAR(30),LastName CHAR(30),Age INT)";
Identifiers may begin with a digit but unless quoted may not consist solely of digits. Try doing this instead:
Try quoting the name:
MySQL doesn't like numbers as identifiers. (Or prefix with something like