What's the proper way to include a var in the table name of my sql query? I've tried
CREATE TABLE `'$username'_table`
but that just creates
'username'_table
ive tried sever other combinations but i just keep getting either something with a space or quotes, i just want to to show up as simply
username_table
function makeUserTable($username)
{
return mysql_query("
CREATE TABLE `'$username'_table` (
`userid_id` bigint(255) unsigned NOT NULL AUTO_INCREMENT,
`userid` varchar(255) NOT NULL DEFAULT '',
`username` varchar(25) NOT NULL DEFAULT '',
PRIMARY KEY (`userid_id`)
)
");
}