I\'m pretty new to php.. and this is probably a stupid mistake... but I have no idea what is going on. I\'m trying to create a table in my database using php. I want to name
you have invalid concatenation of string, use double quotes
instead of single quotes
.
$create = "CREATE TABLE `".$tableusername."` ("
. " `ID` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, "
. " `please` VARCHAR(50) NOT NULL, "
. " `make` VARCHAR(50) NOT NULL, "
. " `this` VARCHAR(50) NOT NULL, "
. " `work` VARCHAR(50) NOT NULL' "
. " )"
. " ENGINE = myisam;";