hello coder, i have a forum, which gets information by these 2 tables.
[code=php]$tbl_name=”forum_question”;
$tbl_name=”forum_answer”;
i have changed it so it gets the data from the $users alliance name:
[code=php]
$tbl_name = $row[‘alliance_name’] . “_question”;
$tbl_name = $row[‘alliance_name’] . “_answer”;
how can i do it on when a user creates a forum to make the two tables called
[code=php]$row[‘alliance_name’] . “_question”
$row[‘alliance_name’] . “_answer”
[QUOTE]
Table forum_question
CREATE TABLE `forum_question
`id
`topic
`detail
`name
`datetime
`view
`reply
PRIMARY KEY (`id
) TYPE=MyISAM AUTO_INCREMENT=1 ;
Table forum_answer
CREATE TABLE `forum_answer
`question_id
`a_id
`a_name
`a_answer
`a_datetime
KEY `a_id`a_id
) TYPE=MyISAM;
would CREATE TABLE `$row[‘alliance_name’] . “_question”
work??