This topic is locked

possibility?

4/23/2008 3:42:14 AM
PHPRunner General questions
F
futo author

hello,
is there any possibility to dinamicly create new table or copy existing and that thei show up in menu (admin option)

J
Jane 4/23/2008

Hi,
in general it's possible.

Create new table with one field - TableName, use add page and Before record added event to create new table.

Here is a sample:

global $conn;

if ($values["TableName"])

{

$strSQL = "create table `".$values["TableName"]."` (FieldName1 VARCHAR (50) NULL)";

db_exec($strSQL,$conn);

}

header("Location: ..._list.php");

exit();

return false;