Use form to get the details from users and add this script to creat new tables.Hope you know the code to connect to your DB.
PHP Code:
<?php
// Connect to your database
// ----------------------------------
// $conn = dbconnect();
$sql = 'DROP TABLE IF EXISTS `zones`';
mysql_query( $sql, $conn );
$sql = 'CREATE TABLE `zones` (
`zid` TINYINT( 3 ) UNSIGNED NOT NULL AUTO_INCREMENT,
`zdesc` VARCHAR( 150 ) NOT NULL,
`zwidth` SMALLINT( 3 ) DEFAULT 0 NOT NULL,
`zheight` SMALLINT( 3 ) DEFAULT 0 NOT NULL,
`zmax` MEDIUMINT(7) unsigned NOT NULL default 12288,
PRIMARY KEY ( `zid` )
)';
echo 'Creating table: \'zones\'....';
mysql_query( $sql, $conn );
$sql = 'DROP TABLE IF EXISTS `bcategory`';
mysql_query( $sql, $conn );
$sql = 'CREATE TABLE `bcategory` (
`bid` int(10) NOT NULL default 0,
`cid` int(10) NOT NULL default 0,
PRIMARY KEY ( `bid`, `cid` )
)';
echo 'Creating table: \'bcategory\'....';
mysql_query( $sql, $conn );
?>